1
0
mirror of https://github.com/bitwarden/server.git synced 2025-04-06 21:48:12 -05:00

script updates

This commit is contained in:
Kyle Spearrin 2017-08-19 21:55:34 -04:00
parent c7735f4e28
commit aa56b51cb5
2 changed files with 5 additions and 5 deletions

8
scripts/bitwarden.sh Normal file → Executable file
View File

@ -56,12 +56,12 @@ function downloadRunFiles() {
curl -s -o $DOCKER_DIR/mssql.env $GITHUB_BASE_URL/docker/mssql.env curl -s -o $DOCKER_DIR/mssql.env $GITHUB_BASE_URL/docker/mssql.env
} }
if [ $1 == 'install' ] if [ "$1" == "install" ]
then then
curl -s -o $SCRIPTS_DIR/install.sh $GITHUB_BASE_URL/scripts/install.sh curl -s -o $SCRIPTS_DIR/install.sh $GITHUB_BASE_URL/scripts/install.sh
chmod u+x $SCRIPTS_DIR/install.sh chmod u+x $SCRIPTS_DIR/install.sh
$SCRIPTS_DIR/install.sh $OUTPUT $SCRIPTS_DIR/install.sh $OUTPUT
elif [ $1 == 'run' -o $1 == 'restart' ] elif [ "$1" == "run" -o "$1" == "restart" ]
then then
if [ ! -d "$DOCKER_DIR" ] if [ ! -d "$DOCKER_DIR" ]
then then
@ -69,7 +69,7 @@ then
downloadRunFiles downloadRunFiles
fi fi
$SCRIPTS_DIR/run.sh $DOCKER_DIR $OS $SCRIPTS_DIR/run.sh $DOCKER_DIR $OS
elif [ $1 == 'update' ] elif [ "$1" == "update" ]
then then
if [ -d "$DOCKER_DIR" ] if [ -d "$DOCKER_DIR" ]
then then
@ -79,7 +79,7 @@ then
mkdir $DOCKER_DIR mkdir $DOCKER_DIR
downloadRunFiles downloadRunFiles
$SCRIPTS_DIR/run.sh $DOCKER_DIR $OS $SCRIPTS_DIR/run.sh $DOCKER_DIR $OS
elif [ $1 == 'updatedb' ] elif [ "$1" == "updatedb" ]
then then
curl -s -o $SCRIPTS_DIR/update-db.sh $GITHUB_BASE_URL/scripts/update-db.sh curl -s -o $SCRIPTS_DIR/update-db.sh $GITHUB_BASE_URL/scripts/update-db.sh
chmod u+x $SCRIPTS_DIR/update-db.sh chmod u+x $SCRIPTS_DIR/update-db.sh

View File

@ -14,7 +14,7 @@ mkdir -p $OUTPUT_DIR
read -p "(!) Enter the domain name for your bitwarden instance (ex. bitwarden.company.com): " DOMAIN read -p "(!) Enter the domain name for your bitwarden instance (ex. bitwarden.company.com): " DOMAIN
read -p "(!) Do you want to use Let's Encrypt to generate a free SSL certificate? (y/n): " LETS_ENCRYPT read -p "(!) Do you want to use Let's Encrypt to generate a free SSL certificate? (y/n): " LETS_ENCRYPT
if [ $LETS_ENCRYPT == "y" ] if [ "$LETS_ENCRYPT" == "y" ]
then then
read -p "(!) Enter your email address (Let's Encrypt will send you certificate expiration reminders): " EMAIL read -p "(!) Enter your email address (Let's Encrypt will send you certificate expiration reminders): " EMAIL
mkdir -p $OUTPUT_DIR/letsencrypt/live/$DOMAIN mkdir -p $OUTPUT_DIR/letsencrypt/live/$DOMAIN