mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
update
This commit is contained in:
+16
-14
@@ -75,7 +75,7 @@ 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}
|
||||
@@ -83,19 +83,19 @@ if [ "${action}" == "install" ] && [ -d ${serverPath}/php-apt/${type} ];then
|
||||
|
||||
# 安装通用扩展
|
||||
echo "install PHP-APT[${type}] extend start"
|
||||
cd ${rootPath}/plugins/php-apt/versions && bash common.sh ${type:0:1}.${type:1:2} install curl
|
||||
cd ${rootPath}/plugins/php-apt/versions && bash common.sh ${type:0:1}.${type:1:2} install gd
|
||||
cd ${rootPath}/plugins/php-apt/versions && bash common.sh ${type:0:1}.${type:1:2} install iconv
|
||||
cd ${rootPath}/plugins/php-apt/versions && bash common.sh ${type:0:1}.${type:1:2} install exif
|
||||
cd ${rootPath}/plugins/php-apt/versions && bash common.sh ${type:0:1}.${type:1:2} install intl
|
||||
cd ${rootPath}/plugins/php-apt/versions && bash common.sh ${type:0:1}.${type:1:2} install xml
|
||||
cd ${rootPath}/plugins/php-apt/versions && bash common.sh ${type:0:1}.${type:1:2} install mcrypt
|
||||
cd ${rootPath}/plugins/php-apt/versions && bash common.sh ${type:0:1}.${type:1:2} install mysqlnd
|
||||
cd ${rootPath}/plugins/php-apt/versions && bash common.sh ${type:0:1}.${type:1:2} install mysql
|
||||
cd ${rootPath}/plugins/php-apt/versions && bash common.sh ${type:0:1}.${type:1:2} install gettext
|
||||
cd ${rootPath}/plugins/php-apt/versions && bash common.sh ${type:0:1}.${type:1:2} install redis
|
||||
cd ${rootPath}/plugins/php-apt/versions && bash common.sh ${type:0:1}.${type:1:2} install memcached
|
||||
cd ${rootPath}/plugins/php-apt/versions && bash common.sh ${type:0:1}.${type:1:2} install mbstring
|
||||
cd ${rootPath}/plugins/php-apt/versions && bash common.sh ${apt_ver} install curl
|
||||
cd ${rootPath}/plugins/php-apt/versions && bash common.sh ${apt_ver} install gd
|
||||
cd ${rootPath}/plugins/php-apt/versions && bash common.sh ${apt_ver} install iconv
|
||||
cd ${rootPath}/plugins/php-apt/versions && bash common.sh ${apt_ver} install exif
|
||||
cd ${rootPath}/plugins/php-apt/versions && bash common.sh ${apt_ver} install intl
|
||||
cd ${rootPath}/plugins/php-apt/versions && bash common.sh ${apt_ver} install xml
|
||||
cd ${rootPath}/plugins/php-apt/versions && bash common.sh ${apt_ver} install mcrypt
|
||||
cd ${rootPath}/plugins/php-apt/versions && bash common.sh ${apt_ver} install mysqlnd
|
||||
cd ${rootPath}/plugins/php-apt/versions && bash common.sh ${apt_ver} install mysql
|
||||
cd ${rootPath}/plugins/php-apt/versions && bash common.sh ${apt_ver} install gettext
|
||||
cd ${rootPath}/plugins/php-apt/versions && bash common.sh ${apt_ver} install redis
|
||||
cd ${rootPath}/plugins/php-apt/versions && bash common.sh ${apt_ver} install memcached
|
||||
cd ${rootPath}/plugins/php-apt/versions && bash common.sh ${apt_ver} install mbstring
|
||||
echo "install PHP-APT[${type}] extend end"
|
||||
|
||||
if [ ! -f /usr/local/bin/composer ];then
|
||||
@@ -103,6 +103,8 @@ if [ "${action}" == "install" ] && [ -d ${serverPath}/php-apt/${type} ];then
|
||||
curl -sS https://getcomposer.org/installer | /usr/bin/php${type:0:1}.${type:1:2}
|
||||
mv composer.phar /usr/local/bin/composer
|
||||
fi
|
||||
|
||||
systemctl restart php${apt_ver}-fpm
|
||||
fi
|
||||
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@ Uninstall_php()
|
||||
#------------------------ uninstall start ------------------------------------#
|
||||
apt -y remove php${version} php${version}-*
|
||||
rm -rf $serverPath/php-apt/${PHP_VER}
|
||||
echo "卸载php-${version}..." > $install_tmp
|
||||
echo "卸载php-${version}..."
|
||||
#------------------------ uninstall start ------------------------------------#
|
||||
}
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ Uninstall_php()
|
||||
#------------------------ uninstall start ------------------------------------#
|
||||
apt -y remove php${version} php${version}-*
|
||||
rm -rf $serverPath/php-apt/${PHP_VER}
|
||||
echo "卸载php-${version}..." > $install_tmp
|
||||
echo "卸载php-${version}..."
|
||||
#------------------------ uninstall start ------------------------------------#
|
||||
}
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ Uninstall_php()
|
||||
#------------------------ uninstall start ------------------------------------#
|
||||
apt -y remove php${version} php${version}-*
|
||||
rm -rf $serverPath/php-apt/${PHP_VER}
|
||||
echo "卸载php-${version}..." > $install_tmp
|
||||
echo "卸载php-${version}..."
|
||||
#------------------------ uninstall start ------------------------------------#
|
||||
}
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ Uninstall_php()
|
||||
#------------------------ uninstall start ------------------------------------#
|
||||
apt -y remove php${version} php${version}-*
|
||||
rm -rf $serverPath/php-apt/${PHP_VER}
|
||||
echo "卸载php-${version}..." > $install_tmp
|
||||
echo "卸载php-${version}..."
|
||||
#------------------------ uninstall start ------------------------------------#
|
||||
}
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ Uninstall_php()
|
||||
#------------------------ uninstall start ------------------------------------#
|
||||
apt -y remove php${version} php${version}-*
|
||||
rm -rf $serverPath/php-apt/${PHP_VER}
|
||||
echo "卸载php-${version}..." > $install_tmp
|
||||
echo "卸载php-${version}..."
|
||||
#------------------------ uninstall start ------------------------------------#
|
||||
}
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ Uninstall_php()
|
||||
#------------------------ uninstall start ------------------------------------#
|
||||
apt -y remove php${version} php${version}-*
|
||||
rm -rf $serverPath/php-apt/${PHP_VER}
|
||||
echo "卸载php-${version}..." > $install_tmp
|
||||
echo "卸载php-${version}..."
|
||||
#------------------------ uninstall start ------------------------------------#
|
||||
}
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ Uninstall_php()
|
||||
#------------------------ uninstall start ------------------------------------#
|
||||
apt -y remove php${version} php${version}-*
|
||||
rm -rf $serverPath/php-apt/${PHP_VER}
|
||||
echo "卸载php-${version}..." > $install_tmp
|
||||
echo "卸载php-${version}..." >
|
||||
#------------------------ uninstall start ------------------------------------#
|
||||
}
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ Uninstall_php()
|
||||
#------------------------ uninstall start ------------------------------------#
|
||||
apt -y remove php${version} php${version}-*
|
||||
rm -rf $serverPath/php-apt/${PHP_VER}
|
||||
echo "卸载php-${version}..." > $install_tmp
|
||||
echo "卸载php-${version}..."
|
||||
#------------------------ uninstall start ------------------------------------#
|
||||
}
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ Uninstall_php()
|
||||
#------------------------ uninstall start ------------------------------------#
|
||||
apt -y remove php${version} php${version}-*
|
||||
rm -rf $serverPath/php-apt/${PHP_VER}
|
||||
echo "卸载php-${version}..." > $install_tmp
|
||||
echo "卸载php-${version}..."
|
||||
#------------------------ uninstall start ------------------------------------#
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user