mdserver-web/scripts/quick/debug.sh

54 lines
1.3 KiB
Bash
Raw Normal View History

2022-06-23 01:23:53 -04:00
#!/bin/bash
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH
echo "welcome to mdserver-web panel"
startTime=`date +%s`
2022-06-23 02:28:31 -04:00
if [ ! -d /www/server/mdserver-web ];then
2022-06-23 01:23:53 -04:00
echo "mdserver-web not exist!"
exit 1
fi
# openresty
2022-06-23 02:28:31 -04:00
if [ ! -d /www/server/openresty ];then
cd /www/server/mdserver-web/plugins/openresty && bash install.sh install 1.21.4.1
fi
2022-06-23 01:23:53 -04:00
# php
2022-06-29 11:03:10 -04:00
# if [ ! -d /www/server/php/71 ];then
# cd /www/server/mdserver-web/plugins/php && bash install.sh install 71
# fi
2022-06-23 01:23:53 -04:00
2022-06-24 09:05:53 -04:00
2022-07-03 11:59:24 -04:00
PHP_VER_LIST=(53 54 55 56 70 71 72 73 74 80 81)
2022-06-29 08:00:24 -04:00
# PHP_VER_LIST=(81)
for PHP_VER in ${PHP_VER_LIST[@]}; do
echo "php${PHP_VER} -- start"
2022-06-29 12:06:09 -04:00
if [ ! -d /www/server/php/${PHP_VER} ];then
cd /www/server/mdserver-web/plugins/php && bash install.sh install ${PHP_VER}
fi
2022-06-29 08:00:24 -04:00
echo "php${PHP_VER} -- end"
done
2022-06-24 09:05:53 -04:00
2022-11-17 00:54:14 -05:00
# cd /www/server/mdserver-web/plugins/php-yum && bash install.sh install 74
2022-06-23 01:23:53 -04:00
# mysql
2022-06-23 02:28:31 -04:00
if [ ! -d /www/server/mysql ];then
2022-06-24 03:48:32 -04:00
# cd /www/server/mdserver-web/plugins/mysql && bash install.sh install 5.7
2022-06-24 08:13:18 -04:00
2022-07-08 23:37:25 -04:00
cd /www/server/mdserver-web/plugins/mysql && bash install.sh install 5.6
# cd /www/server/mdserver-web/plugins/mysql && bash install.sh install 8.0
2022-06-23 02:28:31 -04:00
fi
2022-06-23 01:23:53 -04:00
endTime=`date +%s`
((outTime=(${endTime}-${startTime})/60))
echo -e "Time consumed:\033[32m $outTime \033[0mMinute!"