update bash if/else statements (#342)
This commit is contained in:
parent
1fad33d6e8
commit
2391b7fcf8
|
@ -476,9 +476,8 @@ ask_user_for_config() {
|
||||||
local src='^ #\?- "templates\/web.ssl.template.yml"'
|
local src='^ #\?- "templates\/web.ssl.template.yml"'
|
||||||
local dst=' #\- "templates\/web.ssl.template.yml"'
|
local dst=' #\- "templates\/web.ssl.template.yml"'
|
||||||
sed -i -e "s/$src/$dst/w $changelog" $config_file
|
sed -i -e "s/$src/$dst/w $changelog" $config_file
|
||||||
if [ -s $changelog ]
|
if [ ! -s $changelog ]
|
||||||
then
|
then
|
||||||
else
|
|
||||||
update_ok="n"
|
update_ok="n"
|
||||||
echo "web.ssl.template.yml NOT DISABLED--Are you using a non-standard template?"
|
echo "web.ssl.template.yml NOT DISABLED--Are you using a non-standard template?"
|
||||||
fi
|
fi
|
||||||
|
@ -486,9 +485,8 @@ ask_user_for_config() {
|
||||||
local dst=' #- "templates\/web.letsencrypt.ssl.template.yml"'
|
local dst=' #- "templates\/web.letsencrypt.ssl.template.yml"'
|
||||||
|
|
||||||
sed -i -e "s/$src/$dst/w $changelog" $config_file
|
sed -i -e "s/$src/$dst/w $changelog" $config_file
|
||||||
if [ -s $changelog ]
|
if [ ! -s $changelog ]
|
||||||
then
|
then
|
||||||
else
|
|
||||||
update_ok="n"
|
update_ok="n"
|
||||||
echo "web.ssl.template.yml NOT DISABLED--Are you using a non-standard template?"
|
echo "web.ssl.template.yml NOT DISABLED--Are you using a non-standard template?"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue