From b426b66f9edc297c625e5d8b22a8a91ad740f15a Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Tue, 11 Jun 2024 12:41:40 +0800 Subject: [PATCH] Update install.sh --- plugins/php-apt/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/php-apt/install.sh b/plugins/php-apt/install.sh index 79285a4a9..90b078a6a 100755 --- a/plugins/php-apt/install.sh +++ b/plugins/php-apt/install.sh @@ -31,6 +31,7 @@ fi action=$1 type=$2 +apt_ver=${type:0:1}.${type:1:2} if [ "${2}" == "" ];then echo '缺少安装脚本...' > $install_tmp @@ -75,7 +76,6 @@ fi cd ${curPath} && sh -x $curPath/versions/$2/install.sh $1 if [ "${action}" == "install" ] && [ -d ${serverPath}/php-apt/${type} ];then - apt_ver=${type:0:1}.${type:1:2} #初始化 cd ${rootPath} && python3 ${rootPath}/plugins/php-apt/index.py start ${type} cd ${rootPath} && python3 ${rootPath}/plugins/php-apt/index.py restart ${type}