Merge pull request #483 from midoks/dev

增加清空python库文件
This commit is contained in:
Mr Chen
2023-10-18 01:23:45 +08:00
committed by GitHub
3 changed files with 10 additions and 2 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ OSNAME=`cat ${rootPath}/data/osname.pl`
OSNAME_ID=`cat /etc/*-release | grep VERSION_ID | awk -F = '{print $2}' | awk -F "\"" '{print $2}'`
if [ "centos" == "$OSNAME" ] || [ "OSNAME_ID" != "9" ];then
if [ "centos" == "$OSNAME" ] && [ "$OSNAME_ID" != "9" ];then
if [ "$version" -lt "74" ];then
bash $curPath/gd_old.sh $1 $2
exit 0
+1 -1
View File
@@ -22,7 +22,7 @@ def init(bot):
bot.set_my_commands(
commands=[
telebot.types.BotCommand("start", "查看帮助信息"),
telebot.types.BotCommand("faq", ""),
telebot.types.BotCommand("faq", "BBS帮助"),
telebot.types.BotCommand("music", "搜索网易音乐"),
],
)
+8
View File
@@ -393,6 +393,13 @@ mw_venv(){
cd /www/server/mdserver-web && source bin/activate
}
mw_clean_lib(){
cd /www/server/mdserver-web && rm -rf lib
cd /www/server/mdserver-web && rm -rf lib64
cd /www/server/mdserver-web && rm -rf bin
cd /www/server/mdserver-web && rm -rf include
}
case "$1" in
'start') mw_start;;
'stop') mw_stop;;
@@ -419,6 +426,7 @@ case "$1" in
'mirror') mw_mirror;;
'db') mw_connect_mysql;;
'venv') mw_venv;;
'clean_lib') mw_clean_lib;;
'default')
cd $mw_path
port=7200