mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-20 08:25:50 +08:00
composer和php-apt的优化
This commit is contained in:
@@ -82,11 +82,9 @@ if [ "${action}" == "install" ] && [ -d ${serverPath}/php-yum/${type} ];then
|
||||
cd ${rootPath}/plugins/php-yum/versions && bash common.sh ${type} install mbstring
|
||||
echo "install PHP-YUM[${type}] extend end"
|
||||
|
||||
cd ${rootPath} && python3 ${rootPath}/plugins/php-yum/index.py restart ${type}
|
||||
|
||||
if [ ! -f /usr/local/bin/composer ];then
|
||||
cd /tmp
|
||||
curl -sS https://getcomposer.org/installer | php
|
||||
curl -sS https://getcomposer.org/installer | /opt/remi/php${type}/root/usr/bin/php
|
||||
mv composer.phar /usr/local/bin/composer
|
||||
fi
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user