From bac86bd8e0127218265d0eeb7394ee3053c7a8b6 Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 3 Apr 2026 02:55:55 +0800 Subject: [PATCH] Update install.sh --- plugins/openresty/install.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/plugins/openresty/install.sh b/plugins/openresty/install.sh index a9fb92909..19f3f1356 100755 --- a/plugins/openresty/install.sh +++ b/plugins/openresty/install.sh @@ -31,6 +31,18 @@ else useradd -g www -s /bin/bash www fi +if [ "${action}" == "upgrade" ];then + echo "${VERSION}" > $serverPath/openresty/version.pl + + mkdir -p $serverPath/web_conf/php/conf + echo 'set $PHP_ENV 0;' > $serverPath/web_conf/php/conf/enable-php-00.conf + + #初始化 + cd ${rootPath} && python3 ${rootPath}/plugins/openresty/index.py start + cd ${rootPath} && python3 ${rootPath}/plugins/openresty/index.py initd_install +fi + + if [ "${2}" == "" ];then echo '缺少安装脚本版本...' exit 0