From: Allen Hancock Date: Mon, 27 Mar 2017 02:21:22 +0000 (-0500) Subject: update bash if/else statements (#342) X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=2391b7fcf8eba6e85705499201f3cfac9d14c96d;p=discourse_docker.git update bash if/else statements (#342) --- diff --git a/discourse-setup b/discourse-setup index d6e25b6..b5f89f2 100755 --- a/discourse-setup +++ b/discourse-setup @@ -476,9 +476,8 @@ ask_user_for_config() { local src='^ #\?- "templates\/web.ssl.template.yml"' local dst=' #\- "templates\/web.ssl.template.yml"' sed -i -e "s/$src/$dst/w $changelog" $config_file - if [ -s $changelog ] + if [ ! -s $changelog ] then - else update_ok="n" echo "web.ssl.template.yml NOT DISABLED--Are you using a non-standard template?" fi @@ -486,9 +485,8 @@ ask_user_for_config() { local dst=' #- "templates\/web.letsencrypt.ssl.template.yml"' sed -i -e "s/$src/$dst/w $changelog" $config_file - if [ -s $changelog ] + if [ ! -s $changelog ] then - else update_ok="n" echo "web.ssl.template.yml NOT DISABLED--Are you using a non-standard template?" fi