From 6ca09f883ea64d3241f9e3aaaa35e47cbe408399 Mon Sep 17 00:00:00 2001 From: mack-a <57424792+mack-a@users.noreply.github.com> Date: Mon, 18 Jan 2021 17:11:48 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E8=84=9A=E6=9C=AC):=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E8=B4=A6=E5=8F=B7=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 454a22b..2b18ad4 100644 --- a/install.sh +++ b/install.sh @@ -2992,6 +2992,26 @@ cronRenewTLS() { exit 0 fi } +# 账号管理 +manageAccount() { + echoContent skyBlue "\n功能 1/${totalProgress} : 账号管理" + echoContent red "\n==============================================================" + echoContent yellow "1.查看账号" + echoContent yellow "2.订阅管理" + echoContent red "==============================================================" + read -r -p "请输入:" manageAccountStatus + if [[ "${manageAccountStatus}" == "1" ]]; then + showAccounts 1 + elif [[ "${manageAccountStatus}" == "2" ]]; then + subscribe 1 + else + echoContent red " ---> 输入错误" + fi +} +# 订阅 +subscribe() { + echo +} # 主菜单 menu() { cd "$HOME" || exit @@ -3004,7 +3024,7 @@ menu() { echoContent yellow "1.安装" echoContent yellow "2.任意组合安装" echoContent skyBlue "-------------------------工具管理-----------------------------" - echoContent yellow "3.查看账号" + echoContent yellow "3.账号管理" echoContent yellow "4.更换伪装站" echoContent yellow "5.更新证书" echoContent yellow "6.更换CDN节点" @@ -3030,7 +3050,7 @@ menu() { selectCoreInstall ;; 3) - showAccounts 1 + manageAccount 1 ;; 4) updateNginxBlog 1