1 Star 0 Fork 117

YueXiao / BaoTa

forked from terrydash / BaoTa 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
update.sh 658 Bytes
一键复制 编辑 原始数据 按行查看 历史
阿良 提交于 2019-08-01 09:07 . 6.9.19
#!/bin/bash
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH
LANG=en_US.UTF-8
# 宝塔面板离线升级脚本
panel_path='/www/server/panel'
if [ ! -d $panel_path ];then
echo "当前未安装宝塔面板!"
exit 0;
fi
base_dir=$(cd "$(dirname "$0")";pwd)
if [ $base_dir = $panel_path ];then
echo "不能在面板根目录执行离线升级命令!"
exit 0;
fi
if [ ! -d $base_dir/class ];then
echo "没有找到升级文件!"
exit 0;
fi
rm -f $panel_path/*.pyc $panel_path/class/*.pyc
\cp -r -f $base_dir/. $panel_path/
/etc/init.d/bt restart
echo "===================================="
echo "已完成升级!"
Python
1
https://gitee.com/xyiege/BaoTa.git
git@gitee.com:xyiege/BaoTa.git
xyiege
BaoTa
BaoTa
master

搜索帮助