diff --git a/panel_tools.py b/panel_tools.py index 7bd5385a1..2a3e5c924 100755 --- a/panel_tools.py +++ b/panel_tools.py @@ -80,6 +80,7 @@ def mwcli(mw_input=0): '(101) 关闭PHP52显示', '(200) 切换Linux系统软件源', '(201) 简单速度测试', + '(202) SSH终端管理', '(0) 取消' ] cmd_list_num = len(cmd_list) @@ -264,6 +265,8 @@ def mwcli(mw_input=0): # os.system(INIT_CMD + " mirror") elif mw_input == 201: os.system('curl -Lso- bench.sh | bash') + elif mw_input == 202: + print("SSH终端管理") def open_ssh_port(): diff --git a/scripts/init.d/mw.tpl b/scripts/init.d/mw.tpl index a9aafdfa7..7485042de 100755 --- a/scripts/init.d/mw.tpl +++ b/scripts/init.d/mw.tpl @@ -631,6 +631,10 @@ mw_valkey(){ ${CLIEXEC} } +mw_ssh(){ + echo "123123" +} + mw_venv(){ cd ${PANEL_DIR} && source bin/activate } @@ -755,6 +759,7 @@ case "$1" in 'redis') mw_redis;; 'valkey')mw_valkey;; 'mongodb') mw_mongodb;; + 'ssh') mw_ssh;; 'venv') mw_update_venv;; 'clean_lib') mw_clean_lib;; 'list') mw_list;;