This commit is contained in:
midoks
2022-11-16 20:37:42 +08:00
parent 66187beabc
commit cb3226c184
2 changed files with 18 additions and 10 deletions
+10 -10
View File
@@ -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"
#初始化
+8
View File
@@ -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