fix(SCRIPT): prevent erroneous error message

- port update should target secure block file regardless if disabled
This commit is contained in:
Asif Bacchus 2021-01-06 02:48:38 -07:00
parent e5b2f68fd4
commit c5ddc0f6e8

View File

@ -38,7 +38,7 @@ fi
# update HTTPS redirect port if SSL server test block exists # update HTTPS redirect port if SSL server test block exists
if [ -f "/etc/nginx/sites/note" ]; then if [ -f "/etc/nginx/sites/note" ]; then
printf "Updating port redirects... " printf "Updating port redirects... "
sed -i -e "s%<HTTPS_PORT>%${HTTPS_PORT}%" /etc/nginx/sites/05-test_secured.conf.disabled sed -i -e "s%<HTTPS_PORT>%${HTTPS_PORT}%" /etc/nginx/sites/05-test_secured.*
printf "done\n" printf "done\n"
fi fi