This commit is contained in:
Mr Chen
2024-12-14 02:40:12 +08:00
parent 4b6de5cd9f
commit ef6cc77dc2
2 changed files with 5 additions and 3 deletions
+4
View File
@@ -58,6 +58,7 @@ def mwcli(mw_input=0):
'(3) 启动面板服务',
'(4) 重载面板服务',
'(5) 修改面板端口',
'(6) 关闭安全入口',
'(10) 查看面板默认信息',
'(11) 修改面板密码',
'(12) 修改面板用户名',
@@ -128,6 +129,9 @@ def mwcli(mw_input=0):
else:
mw.echoInfo("端口范围在0-65536之间")
return
elif mw_input == 6:
thisdb.setOption('admin_path', '')
mw.echoInfo("关闭安全入口成功!")
elif mw_input == 10:
os.system(INIT_CMD + " default")
elif mw_input == 11:
+1 -3
View File
@@ -324,9 +324,7 @@ mw_install_app()
}
mw_close_admin_path(){
if [ -f $mw_path/data/admin_path.pl ]; then
rm -rf $mw_path/data/admin_path.pl
fi
cd ${PANEL_DIR} && python3 panel_tools.py cli 6
}
mw_force_kill()