fix wrong comparison operator on HSTS check

This commit is contained in:
Asif Bacchus 2019-10-17 00:41:15 -06:00
parent a4a20ad471
commit 5ccc917d1b
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ sed -i -e "s%<SERVER_NAMES>%${SERVER_NAMES}%" /etc/nginx/server_names.conf
printf "done\n"
# activate HSTS
if [ "$HSTS" -eq TRUE ]; then
if [ "$HSTS" = TRUE ]; then
printf "Activating HSTS configuration... "
sed -i -e "s/^#add_header/add_header/" \
/etc/nginx/config/mozIntermediate_ssl.conf.disabled