diff --git a/plugins/php/install.sh b/plugins/php/install.sh index fae802715..421755f23 100755 --- a/plugins/php/install.sh +++ b/plugins/php/install.sh @@ -9,6 +9,14 @@ 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 `" +else + groupadd www + # useradd -g www -s /sbin/nologin www + useradd -g www -s /bin/bash www +fi action=$1 type=$2