Update install.sh
This commit is contained in:
parent
3dec4cd54d
commit
3f5c01ac85
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue