diff --git a/plugins/php/versions/common/gd.sh b/plugins/php/versions/common/gd.sh index bdc9b3e7e..8c97fab04 100755 --- a/plugins/php/versions/common/gd.sh +++ b/plugins/php/versions/common/gd.sh @@ -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 diff --git a/plugins/tgbot/startup/extend/init_cmd.py b/plugins/tgbot/startup/extend/init_cmd.py index ae3fdc4b0..75048aef1 100644 --- a/plugins/tgbot/startup/extend/init_cmd.py +++ b/plugins/tgbot/startup/extend/init_cmd.py @@ -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", "搜索网易音乐"), ], ) diff --git a/scripts/init.d/mw.tpl b/scripts/init.d/mw.tpl index 4ba2f11d7..429fb9dce 100755 --- a/scripts/init.d/mw.tpl +++ b/scripts/init.d/mw.tpl @@ -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