diff --git a/plugins/php-apt/install.sh b/plugins/php-apt/install.sh index 0198e9ae0..61bf7ce48 100755 --- a/plugins/php-apt/install.sh +++ b/plugins/php-apt/install.sh @@ -89,6 +89,12 @@ if [ "${action}" == "install" ] && [ -d ${serverPath}/php-apt/${type} ];then 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 echo "install PHP-APT[${type}] extend end" + + if [ ! -f /usr/local/bin/composer ];then + cd /tmp + curl -sS https://getcomposer.org/installer | php + mv composer.phar /usr/local/bin/composer + fi fi diff --git a/plugins/php-yum/install.sh b/plugins/php-yum/install.sh index 5a8d3eb5b..5853d02a3 100755 --- a/plugins/php-yum/install.sh +++ b/plugins/php-yum/install.sh @@ -78,6 +78,12 @@ if [ "${action}" == "install" ] && [ -d ${serverPath}/php-yum/${type} ];then cd ${rootPath}/plugins/php-yum/versions && bash common.sh ${type} install redis cd ${rootPath}/plugins/php-yum/versions && bash common.sh ${type} install memcached echo "install PHP-YUM[${type}] extend end" + + if [ ! -f /usr/local/bin/composer ];then + cd /tmp + curl -sS https://getcomposer.org/installer | php + mv composer.phar /usr/local/bin/composer + fi fi