mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update install.sh
This commit is contained in:
@@ -31,6 +31,18 @@ else
|
|||||||
useradd -g www -s /bin/bash www
|
useradd -g www -s /bin/bash www
|
||||||
fi
|
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
|
if [ "${2}" == "" ];then
|
||||||
echo '缺少安装脚本版本...'
|
echo '缺少安装脚本版本...'
|
||||||
exit 0
|
exit 0
|
||||||
|
|||||||
Reference in New Issue
Block a user