当前仓库属于暂停状态,部分功能使用受限,详情请查阅 仓库状态说明
1 Star 0 Fork 23

qq200009/lnmp
暂停

forked from Hailiang/lnmp 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
upgrade.sh 1.03 KB
一键复制 编辑 原始数据 按行查看 历史
Hailiang 提交于 2018-08-07 09:39 . change blog url
#!/bin/bash
. include/common.sh
. include/public.sh
. include/sysinfo.sh >/dev/null 2>&1
clear
echo -e "${GREEN}
#####################################################################
# LNMP is a bash script for the installation of Nginx + PHP + MySQL.#
# Author Hehl <[email protected]> #
# Blog Http://www.cnblogs.com/ddif #
#####################################################################"
#Menu of upgrade
Menu_Upgrade(){
echo -e "${YELLOW}Please input the number which you want upgrade?"
echo
echo -e "${YELLOW}1)${WHITE} Upgrade Nginx;"
echo -e "${YELLOW}2)${WHITE} Upgrade Mysql;"
echo -e "${YELLOW}3)${WHITE} Upgrade Php;"
echo
read -p "You select number is: " select_upgrade
case $select_upgrade in
1)
. include/upgrade_web.sh
;;
2)
if [ ! -d $mysql_local ];then
echo "No Mysql Server in $mysql_local !"
exit
else
. include/upgrade_db.sh
fi
;;
3)
. include/upgrade_php.sh
;;
*)
echo "Error, input wrong number!"
;;
esac
}
Menu_Upgrade 2>&1 | tee ./upgrade.log
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Shell
1
https://gitee.com/921130764/lnmp.git
[email protected]:921130764/lnmp.git
921130764
lnmp
lnmp
master

搜索帮助