We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c7435c commit 963050bCopy full SHA for 963050b
usr/local/sbin/easyengine
@@ -219,7 +219,11 @@ COMMONNGINX()
219
EEMD5SUM
220
221
# White List IP Address
222
- sed -i "s/deny.*/$(echo "allow $(w | grep $(echo $SSH_TTY| cut -d'/' -f3,4) | awk '{print($3)}');")\ndeny all;/" /etc/nginx/common/acl.conf
+ WHITELISTIP=$(w | grep $(echo $SSH_TTY| cut -d'/' -f3,4) | awk '{print($3)}')
223
+ if [ ! -z $WHITELISTIP ]
224
+ then
225
+ sed -i "s/deny.*/$(echo "allow $WHITELISTIP;")\ndeny all;/" /etc/nginx/common/acl.conf
226
+ fi
227
228
# Protect EE Locations
229
HTTPAUTH
0 commit comments