mirror of https://github.com/midoks/mdserver-web
parent
19503a343f
commit
3e35620d37
@ -1,53 +0,0 @@ |
||||
#! /bin/sh |
||||
export PATH=$PATH:/opt/local/bin:/opt/local/sbin:/opt/local/share/man:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin |
||||
DIR=$(cd "$(dirname "$0")"; pwd) |
||||
|
||||
|
||||
|
||||
# cd /www/server/mdserver-web/scripts/quick && bash debug.sh |
||||
# cd /www/server/mdserver-web/plugins/php && bash all_test.sh |
||||
|
||||
|
||||
# cd /www/server/mdserver-web/plugins/php && bash install.sh install 71 |
||||
# cd /www/server/mdserver-web/plugins/php/versions/52/ && bash gd.sh install 52 |
||||
|
||||
# cd /www/server/mdserver-web/plugins/php/versions/52/ && bash openssl.sh install 52 |
||||
# cd /www/server/mdserver-web/plugins/php/versions/81/ && bash imagemagick.sh install 81 |
||||
# cd /www/server/mdserver-web/plugins/php/versions/70/ && bash imagemagick.sh install 70 |
||||
|
||||
PHP_VER=71 |
||||
echo "php${PHP_VER} -- start" |
||||
cmd_ext=$(ls -l $DIR/versions/$PHP_VER/ |awk '{print $9}') |
||||
cd $DIR && /bin/bash install.sh install $PHP_VER |
||||
for ii in $cmd_ext |
||||
do |
||||
if [ "install.sh" == "$ii" ];then |
||||
echo '' > /tmp/t.log |
||||
else |
||||
cd $DIR/versions/$PHP_VER && /bin/bash $ii install $PHP_VER |
||||
fi |
||||
done |
||||
echo "php${PHP_VER} -- end" |
||||
|
||||
|
||||
PHP_VER_LIST=(53 54 55 56 70 71 72 73 74 80 81) |
||||
# PHP_VER_LIST=(81) |
||||
for PHP_VER in ${PHP_VER_LIST[@]}; do |
||||
echo "php${PHP_VER} -- start" |
||||
if [ -d /www/server/php/${PHP_VER} ];then |
||||
cmd_ext=$(ls -l $DIR/versions/$PHP_VER/ |awk '{print $9}') |
||||
for ii in $cmd_ext |
||||
do |
||||
echo "${ii}" |
||||
if [ "install.sh" == "$ii" ];then |
||||
echo '' > /tmp/t.log |
||||
else |
||||
cd $DIR/versions/$PHP_VER/ && bash $ii install ${PHP_VER} |
||||
fi |
||||
done |
||||
fi |
||||
echo "php${PHP_VER} -- end" |
||||
done |
||||
|
||||
|
||||
rm -rf /tmp/t.log |
@ -0,0 +1,49 @@ |
||||
#!/bin/bash |
||||
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin |
||||
export PATH |
||||
|
||||
curPath=`pwd` |
||||
rootPath=$(dirname "$curPath") |
||||
rootPath=$(dirname "$rootPath") |
||||
serverPath=$(dirname "$rootPath") |
||||
sourcePath=${serverPath}/source |
||||
sysName=`uname` |
||||
install_tmp=${rootPath}/tmp/mw_install.pl |
||||
|
||||
|
||||
#获取信息和版本 |
||||
# bash /www/server/mdsever-web/scripts/getos.sh |
||||
bash ${rootPath}/scripts/getos.sh |
||||
OSNAME=`cat ${rootPath}/data/osname.pl` |
||||
VERSION_ID=`cat /etc/*-release | grep VERSION_ID | awk -F = '{print $2}' | awk -F "\"" '{print $2}'` |
||||
|
||||
version=5.6 |
||||
PHP_VER=56 |
||||
|
||||
|
||||
Install_php() |
||||
{ |
||||
#------------------------ install start ------------------------------------# |
||||
apt -y install php${version} php${version}-fpm |
||||
if [ "$?" == "0" ];then |
||||
mkdir -p $serverPath/php-apt/${PHP_VER} |
||||
fi |
||||
|
||||
#------------------------ install end ------------------------------------# |
||||
} |
||||
|
||||
Uninstall_php() |
||||
{ |
||||
#------------------------ uninstall start ------------------------------------# |
||||
apt -y remove php${version} php${version}-fpm |
||||
rm -rf $serverPath/php-apt/${PHP_VER} |
||||
echo "卸载php-${version}..." > $install_tmp |
||||
#------------------------ uninstall start ------------------------------------# |
||||
} |
||||
|
||||
action=${1} |
||||
if [ "${1}" == 'install' ];then |
||||
Install_php |
||||
else |
||||
Uninstall_php |
||||
fi |
@ -0,0 +1,49 @@ |
||||
#!/bin/bash |
||||
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin |
||||
export PATH |
||||
|
||||
curPath=`pwd` |
||||
rootPath=$(dirname "$curPath") |
||||
rootPath=$(dirname "$rootPath") |
||||
serverPath=$(dirname "$rootPath") |
||||
sourcePath=${serverPath}/source |
||||
sysName=`uname` |
||||
install_tmp=${rootPath}/tmp/mw_install.pl |
||||
|
||||
|
||||
#获取信息和版本 |
||||
# bash /www/server/mdsever-web/scripts/getos.sh |
||||
bash ${rootPath}/scripts/getos.sh |
||||
OSNAME=`cat ${rootPath}/data/osname.pl` |
||||
VERSION_ID=`cat /etc/*-release | grep VERSION_ID | awk -F = '{print $2}' | awk -F "\"" '{print $2}'` |
||||
|
||||
version=7.0 |
||||
PHP_VER=70 |
||||
|
||||
|
||||
Install_php() |
||||
{ |
||||
#------------------------ install start ------------------------------------# |
||||
apt -y install php${version} php${version}-fpm |
||||
if [ "$?" == "0" ];then |
||||
mkdir -p $serverPath/php-apt/${PHP_VER} |
||||
fi |
||||
|
||||
#------------------------ install end ------------------------------------# |
||||
} |
||||
|
||||
Uninstall_php() |
||||
{ |
||||
#------------------------ uninstall start ------------------------------------# |
||||
apt -y remove php${version} php${version}-fpm |
||||
rm -rf $serverPath/php-apt/${PHP_VER} |
||||
echo "卸载php-${version}..." > $install_tmp |
||||
#------------------------ uninstall start ------------------------------------# |
||||
} |
||||
|
||||
action=${1} |
||||
if [ "${1}" == 'install' ];then |
||||
Install_php |
||||
else |
||||
Uninstall_php |
||||
fi |
@ -0,0 +1,49 @@ |
||||
#!/bin/bash |
||||
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin |
||||
export PATH |
||||
|
||||
curPath=`pwd` |
||||
rootPath=$(dirname "$curPath") |
||||
rootPath=$(dirname "$rootPath") |
||||
serverPath=$(dirname "$rootPath") |
||||
sourcePath=${serverPath}/source |
||||
sysName=`uname` |
||||
install_tmp=${rootPath}/tmp/mw_install.pl |
||||
|
||||
|
||||
#获取信息和版本 |
||||
# bash /www/server/mdsever-web/scripts/getos.sh |
||||
bash ${rootPath}/scripts/getos.sh |
||||
OSNAME=`cat ${rootPath}/data/osname.pl` |
||||
VERSION_ID=`cat /etc/*-release | grep VERSION_ID | awk -F = '{print $2}' | awk -F "\"" '{print $2}'` |
||||
|
||||
version=7.1 |
||||
PHP_VER=71 |
||||
|
||||
|
||||
Install_php() |
||||
{ |
||||
#------------------------ install start ------------------------------------# |
||||
apt -y install php${version} php${version}-fpm |
||||
if [ "$?" == "0" ];then |
||||
mkdir -p $serverPath/php-apt/${PHP_VER} |
||||
fi |
||||
|
||||
#------------------------ install end ------------------------------------# |
||||
} |
||||
|
||||
Uninstall_php() |
||||
{ |
||||
#------------------------ uninstall start ------------------------------------# |
||||
apt -y remove php${version} php${version}-fpm |
||||
rm -rf $serverPath/php-apt/${PHP_VER} |
||||
echo "卸载php-${version}..." > $install_tmp |
||||
#------------------------ uninstall start ------------------------------------# |
||||
} |
||||
|
||||
action=${1} |
||||
if [ "${1}" == 'install' ];then |
||||
Install_php |
||||
else |
||||
Uninstall_php |
||||
fi |
@ -0,0 +1,49 @@ |
||||
#!/bin/bash |
||||
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin |
||||
export PATH |
||||
|
||||
curPath=`pwd` |
||||
rootPath=$(dirname "$curPath") |
||||
rootPath=$(dirname "$rootPath") |
||||
serverPath=$(dirname "$rootPath") |
||||
sourcePath=${serverPath}/source |
||||
sysName=`uname` |
||||
install_tmp=${rootPath}/tmp/mw_install.pl |
||||
|
||||
|
||||
#获取信息和版本 |
||||
# bash /www/server/mdsever-web/scripts/getos.sh |
||||
bash ${rootPath}/scripts/getos.sh |
||||
OSNAME=`cat ${rootPath}/data/osname.pl` |
||||
VERSION_ID=`cat /etc/*-release | grep VERSION_ID | awk -F = '{print $2}' | awk -F "\"" '{print $2}'` |
||||
|
||||
version=7.2 |
||||
PHP_VER=72 |
||||
|
||||
|
||||
Install_php() |
||||
{ |
||||
#------------------------ install start ------------------------------------# |
||||
apt -y install php${version} php${version}-fpm |
||||
if [ "$?" == "0" ];then |
||||
mkdir -p $serverPath/php-apt/${PHP_VER} |
||||
fi |
||||
|
||||
#------------------------ install end ------------------------------------# |
||||
} |
||||
|
||||
Uninstall_php() |
||||
{ |
||||
#------------------------ uninstall start ------------------------------------# |
||||
apt -y remove php${version} php${version}-fpm |
||||
rm -rf $serverPath/php-apt/${PHP_VER} |
||||
echo "卸载php-${version}..." > $install_tmp |
||||
#------------------------ uninstall start ------------------------------------# |
||||
} |
||||
|
||||
action=${1} |
||||
if [ "${1}" == 'install' ];then |
||||
Install_php |
||||
else |
||||
Uninstall_php |
||||
fi |
@ -0,0 +1,49 @@ |
||||
#!/bin/bash |
||||
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin |
||||
export PATH |
||||
|
||||
curPath=`pwd` |
||||
rootPath=$(dirname "$curPath") |
||||
rootPath=$(dirname "$rootPath") |
||||
serverPath=$(dirname "$rootPath") |
||||
sourcePath=${serverPath}/source |
||||
sysName=`uname` |
||||
install_tmp=${rootPath}/tmp/mw_install.pl |
||||
|
||||
|
||||
#获取信息和版本 |
||||
# bash /www/server/mdsever-web/scripts/getos.sh |
||||
bash ${rootPath}/scripts/getos.sh |
||||
OSNAME=`cat ${rootPath}/data/osname.pl` |
||||
VERSION_ID=`cat /etc/*-release | grep VERSION_ID | awk -F = '{print $2}' | awk -F "\"" '{print $2}'` |
||||
|
||||
version=7.3 |
||||
PHP_VER=73 |
||||
|
||||
|
||||
Install_php() |
||||
{ |
||||
#------------------------ install start ------------------------------------# |
||||
apt -y install php${version} php${version}-fpm |
||||
if [ "$?" == "0" ];then |
||||
mkdir -p $serverPath/php-apt/${PHP_VER} |
||||
fi |
||||
|
||||
#------------------------ install end ------------------------------------# |
||||
} |
||||
|
||||
Uninstall_php() |
||||
{ |
||||
#------------------------ uninstall start ------------------------------------# |
||||
apt -y remove php${version} php${version}-fpm |
||||
rm -rf $serverPath/php-apt/${PHP_VER} |
||||
echo "卸载php-${version}..." > $install_tmp |
||||
#------------------------ uninstall start ------------------------------------# |
||||
} |
||||
|
||||
action=${1} |
||||
if [ "${1}" == 'install' ];then |
||||
Install_php |
||||
else |
||||
Uninstall_php |
||||
fi |
Loading…
Reference in new issue