Browse Source

Fixed readonly EE_IP_ADDRESS variable

old-stable
Mitesh Shah 11 years ago
parent
commit
ab312861c3
  1. 6
      src/modules/debug/ee_mod_debug_nginx.sh

6
src/modules/debug/ee_mod_debug_nginx.sh

@ -6,10 +6,12 @@ function ee_mod_debug_nginx()
if [ -z $EE_DOMAIN ]; then
if [ -z "$EE_IP_ADDRESS" ]; then
# Enable NGINX debug for all IP
EE_IP_ADDRESS="0.0.0.0/0"
EE_DEBUG_ADDRESS="0.0.0.0/0"
else
EE_DEBUG_ADDRESS=$EE_IP_ADDRESS
fi
for ee_ip in $EE_IP_ADDRESS; do
for ee_ip in $EE_DEBUG_ADDRESS; do
grep "debug_connection $ee_ip" /etc/nginx/nginx.conf &>> $EE_COMMAND_LOG
if [ $? -ne 0 ]; then
ee_lib_echo "Setup NGINX debug connection for $ee_ip, please wait..."

Loading…
Cancel
Save