From 98ed286b50be7e8aa26e0f40aa319e917deaf646 Mon Sep 17 00:00:00 2001 From: midoks Date: Sat, 17 Dec 2022 23:57:05 +0800 Subject: [PATCH] up --- plugins/php-apt/install.sh | 6 ++++++ plugins/php-yum/install.sh | 6 ++++++ 2 files changed, 12 insertions(+) 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