From aa56b51cb5aa5660561355730c47afffa4112917 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Sat, 19 Aug 2017 21:55:34 -0400 Subject: [PATCH] script updates --- scripts/bitwarden.sh | 8 ++++---- scripts/install.sh | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) mode change 100644 => 100755 scripts/bitwarden.sh diff --git a/scripts/bitwarden.sh b/scripts/bitwarden.sh old mode 100644 new mode 100755 index 800a468b24..eb965ead5e --- a/scripts/bitwarden.sh +++ b/scripts/bitwarden.sh @@ -56,12 +56,12 @@ function downloadRunFiles() { curl -s -o $DOCKER_DIR/mssql.env $GITHUB_BASE_URL/docker/mssql.env } -if [ $1 == 'install' ] +if [ "$1" == "install" ] then curl -s -o $SCRIPTS_DIR/install.sh $GITHUB_BASE_URL/scripts/install.sh chmod u+x $SCRIPTS_DIR/install.sh $SCRIPTS_DIR/install.sh $OUTPUT -elif [ $1 == 'run' -o $1 == 'restart' ] +elif [ "$1" == "run" -o "$1" == "restart" ] then if [ ! -d "$DOCKER_DIR" ] then @@ -69,7 +69,7 @@ then downloadRunFiles fi $SCRIPTS_DIR/run.sh $DOCKER_DIR $OS -elif [ $1 == 'update' ] +elif [ "$1" == "update" ] then if [ -d "$DOCKER_DIR" ] then @@ -79,7 +79,7 @@ then mkdir $DOCKER_DIR downloadRunFiles $SCRIPTS_DIR/run.sh $DOCKER_DIR $OS -elif [ $1 == 'updatedb' ] +elif [ "$1" == "updatedb" ] then curl -s -o $SCRIPTS_DIR/update-db.sh $GITHUB_BASE_URL/scripts/update-db.sh chmod u+x $SCRIPTS_DIR/update-db.sh diff --git a/scripts/install.sh b/scripts/install.sh index 896c7e1595..50fc4b9cf8 100644 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -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 "(!) 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 read -p "(!) Enter your email address (Let's Encrypt will send you certificate expiration reminders): " EMAIL mkdir -p $OUTPUT_DIR/letsencrypt/live/$DOMAIN