We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 15f9025 commit 68f08f2Copy full SHA for 68f08f2
scripts/redis.sh
@@ -51,7 +51,7 @@ echo 'done.'
51
# SESSION Handling
52
echo 'Setting up PHP sessions to use redis... '
53
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
+sed -i -e '/^;session.save_path/ s/.*/session.save_path = "127.0.0.1:6379?auth='$redis_pass'"/' $FPM_PHP_INI
55
56
/usr/sbin/php-fpm${PHP_VER} -t && systemctl restart php${PHP_VER}-fpm &> /dev/null
57
if [ "$?" != 0 ]; then
0 commit comments