Skip to content

Commit 68f08f2

Browse files
committed
Setup correct redis connection info to PHP sessions
1 parent 15f9025 commit 68f08f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/redis.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ echo 'done.'
5151
# SESSION Handling
5252
echo 'Setting up PHP sessions to use redis... '
5353
sed -i -e '/^session.save_handler/ s/=.*/= redis/' $FPM_PHP_INI
54-
sed -i -e '/^;session.save_path/ s/.*/session.save_path = "127.0.0.1:6379"/' $FPM_PHP_INI
54+
sed -i -e '/^;session.save_path/ s/.*/session.save_path = "127.0.0.1:6379?auth='$redis_pass'"/' $FPM_PHP_INI
5555

5656
/usr/sbin/php-fpm${PHP_VER} -t && systemctl restart php${PHP_VER}-fpm &> /dev/null
5757
if [ "$?" != 0 ]; then

0 commit comments

Comments
 (0)