diff --git a/entrypoint/site-config.sh b/entrypoint/site-config.sh index e90cb74..6bf2642 100644 --- a/entrypoint/site-config.sh +++ b/entrypoint/site-config.sh @@ -68,7 +68,7 @@ if [ "$USE_REVERSE_PROXY" = "yes" ] ; then replace_in_file "${NGINX_PREFIX}reverse-proxy-${i}.conf" "%REVERSE_PROXY_URL%" "$url_value" replace_in_file "${NGINX_PREFIX}reverse-proxy-${i}.conf" "%REVERSE_PROXY_HOST%" "$host_value" if [ "$custom_headers_value" != "" ] ; then - IFS_$IFS + IFS_=$IFS IFS=';' for header_value in $(echo $custom_headers_value) ; do replace_in_file "${NGINX_PREFIX}reverse-proxy-${i}.conf" "%REVERSE_PROXY_CUSTOM_HEADERS%" "proxy_set_header $header_value;\n%REVERSE_PROXY_CUSTOM_HEADERS%" diff --git a/prepare.sh b/prepare.sh index a4a0279..29fc113 100644 --- a/prepare.sh +++ b/prepare.sh @@ -68,7 +68,7 @@ chown -R root:nginx /var/run/fail2ban /var/lib/fail2ban chmod -R 770 /var/run/fail2ban /var/lib/fail2ban # prepare /usr/local/lib/lua -chown root:nginx /usr/local/lib/lua +chown -R root:nginx /usr/local/lib/lua chmod 770 /usr/local/lib/lua find /usr/local/lib/lua -type f -name "*.conf" -exec chmod 0760 {} \; find /usr/local/lib/lua -type f -name "*.lua" -exec chmod 0760 {} \;