more console output cleanup

This commit is contained in:
Asif Bacchus 2019-10-18 02:01:47 -06:00
parent d65e6ac266
commit 868b29abc5

View File

@ -12,18 +12,18 @@ printf "done\n"
# update access log global preference
if [ "$ACCESS_LOG" = "OFF" ]; then
printf "Turning access log OFF..."
printf "Turning access log OFF... "
sed -i -e "s%<ACCESS_LOG_SETTING>%OFF%" /etc/nginx/nginx.conf
printf "done\n"
elif [ "$ACCESS_LOG" = "ON" ]; then
printf "Turning access log ON..."
printf "Turning access log ON... "
sed -i -e "s%<ACCESS_LOG_SETTING>%/var/log/nginx/access.log combined%" /etc/nginx/nginx.conf
printf "done\n"
fi
# update HTTPS redirect port if SSL server test block exists
if [ -f "/etc/nginx/sites/note" ]; then
printf "Updating port redirects...\n"
printf "Updating port redirects... "
sed -i -e "s%<HTTPS_PORT>%${HTTPS_PORT}%" /etc/nginx/sites/05-test_secured.conf.disabled
printf "done\n"
fi