update bash if/else statements (#342)

This commit is contained in:
Allen Hancock 2017-03-26 21:21:22 -05:00 committed by Matt Palmer
parent 1fad33d6e8
commit 2391b7fcf8
1 changed files with 2 additions and 4 deletions

View File

@ -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