From 9c7210f7c6231d8a197081a3d09393744fa43f37 Mon Sep 17 00:00:00 2001 From: Kenny Yang <45874689+shakenny@users.noreply.github.com> Date: Wed, 29 May 2024 09:29:12 +0800 Subject: [PATCH] Update install_wordpress.sh --- vps/install_wordpress.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vps/install_wordpress.sh b/vps/install_wordpress.sh index 261ddc7..7c48095 100644 --- a/vps/install_wordpress.sh +++ b/vps/install_wordpress.sh @@ -70,7 +70,7 @@ rm latest.zip insert_commands="define('FS_METHOD', 'direct');\ndefine('WP_REDIS_HOST', 'redis');\ndefine('WP_REDIS_PORT', '6379');" # 使用 sed 插入命令 -sed -i "/\/\* 在这行和「停止编辑」行之间添加任何自定义值。 \*\//a\\ $insert_commands" "/home/web/html/"${domain_name}"/wordpress/wp-config-sample.php" +sed -i "/\/\* 在这行和「停止编辑」行之间添加任何自定义值。 \*\//a\\ ${insert_commands}" "/home/web/html/"${domain_name}"/wordpress/wp-config-sample.php" # 重启Nginx服务器 echo "Nginx启动"