From 3f5c01ac85c15d7e4b28bdee45446ad59ed3eeb4 Mon Sep 17 00:00:00 2001 From: midoks Date: Mon, 21 Nov 2022 22:08:12 +0800 Subject: [PATCH] Update install.sh --- plugins/php/install.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/plugins/php/install.sh b/plugins/php/install.sh index 3c5cc11ee..05d325931 100755 --- a/plugins/php/install.sh +++ b/plugins/php/install.sh @@ -10,8 +10,8 @@ serverPath=$(dirname "$rootPath") install_tmp=${rootPath}/tmp/mw_install.pl if id www &> /dev/null ;then - echo "www UID is `id -u www`" - echo "www Shell is `grep "^www:" /etc/passwd |cut -d':' -f7 `" + echo "www uid is `id -u www`" + echo "www shell is `grep "^www:" /etc/passwd |cut -d':' -f7 `" else groupadd www # useradd -g www -s /sbin/nologin www @@ -31,7 +31,8 @@ if [ ! -d $curPath/versions/$2 ];then exit 0 fi -if [ -d $serverPath/php/${type} ];then + +if [ "${action}" == "install" ] && [ -d $serverPath/php/${type} ];then exit 0 fi