diff --git a/plugins/php-apt/install.sh b/plugins/php-apt/install.sh index b80540a24..e8db082a0 100755 --- a/plugins/php-apt/install.sh +++ b/plugins/php-apt/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 @@ -73,14 +73,14 @@ if [ "${action}" == "install" ] && [ -d ${serverPath}/php-apt/${type} ];then # 安装通用扩展 echo "install PHP-APT[${type}] extend start" - cd ${rootPath}/plugins/php-apt/versions && bash common.sh ${type} install gd - cd ${rootPath}/plugins/php-apt/versions && bash common.sh ${type} install iconv - cd ${rootPath}/plugins/php-apt/versions && bash common.sh ${type} install exif - cd ${rootPath}/plugins/php-apt/versions && bash common.sh ${type} install intl - cd ${rootPath}/plugins/php-apt/versions && bash common.sh ${type} install mcrypt - cd ${rootPath}/plugins/php-apt/versions && bash common.sh ${type} install openssl - cd ${rootPath}/plugins/php-apt/versions && bash common.sh ${type} install mysqlnd - cd ${rootPath}/plugins/php-apt/versions && bash common.sh ${type} install gettext + cd ${rootPath}/plugins/php-apt/versions && bash common.sh ${type:0:1}.${type:1:2} install gd + cd ${rootPath}/plugins/php-apt/versions && bash common.sh ${type:0:1}.${type:1:2} install iconv + cd ${rootPath}/plugins/php-apt/versions && bash common.sh ${type:0:1}.${type:1:2} install exif + cd ${rootPath}/plugins/php-apt/versions && bash common.sh ${type:0:1}.${type:1:2} install intl + cd ${rootPath}/plugins/php-apt/versions && bash common.sh ${type:0:1}.${type:1:2} install mcrypt + cd ${rootPath}/plugins/php-apt/versions && bash common.sh ${type:0:1}.${type:1:2} install openssl + cd ${rootPath}/plugins/php-apt/versions && bash common.sh ${type:0:1}.${type:1:2} install mysqlnd + cd ${rootPath}/plugins/php-apt/versions && bash common.sh ${type:0:1}.${type:1:2} install gettext echo "install PHP-APT[${type}] extend end" #初始化 diff --git a/scripts/install.sh b/scripts/install.sh index 426888d1f..e8f123ade 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -19,6 +19,7 @@ if [ "$EUID" -ne 0 ] fi + if [ ${_os} == "Darwin" ]; then OSNAME='macos' elif grep -Eq "openSUSE" /etc/*-release; then @@ -55,6 +56,13 @@ fi if [ $OSNAME != "macos" ];then + if id www &> /dev/null ;then + echo "" + else + groupadd www + useradd -g www -s /bin/bash www + fi + mkdir -p /www/server mkdir -p /www/wwwroot mkdir -p /www/wwwlogs