Explorar o código

修正安装脚本中redis密码变量失效问题

James Iter %!s(int64=8) %!d(string=hai) anos
pai
achega
3923ec36ee
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      INSTALL.sh

+ 1 - 1
INSTALL.sh

@@ -88,7 +88,7 @@ function install_Redis() {
     sed -i '@^daemonize no@daemonize yes@g' /etc/redis.conf
     sed -i 's@^bind 127.0.0.1@bind 0.0.0.0@g' /etc/redis.conf
     sed -i 's@^appendonly no@appendonly yes@g' /etc/redis.conf
-    echo 'requirepass ${REDIS_PSWD}' >> /etc/redis.conf
+    echo "requirepass ${REDIS_PSWD}" >> /etc/redis.conf
 
     # 启动并使其随机启动
     systemctl enable redis.service