Skip to content

Commit 3decd9b

Browse files
committed
redis security fix
1 parent a0b81ea commit 3decd9b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

install

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,16 @@ function ee_update_latest()
462462
fi
463463
fi
464464

465+
#Fix Redis-server security issue
466+
#http://redis.io/topics/security
467+
if [ -f /etc/redis/redis.conf ]; then
468+
grep -0 -v "#" /etc/redis/redis.conf | grep 'bind' &>> /dev/null
469+
if [ $? -ne 0 ]; then
470+
sed -i '$ a bind 127.0.0.1' /etc/redis/redis.conf &>> /dev/null
471+
service redis-server restart &>> /dev/null
472+
fi
473+
fi
474+
465475
# Fix for 3.3.2 renamed nginx.conf
466476
nginx -V 2>&1 &>>/dev/null
467477
if [[ $? -eq 0 ]]; then

0 commit comments

Comments
 (0)