From 4c3827158fa759ac2ef6a0c124431877ed8ede4c Mon Sep 17 00:00:00 2001 From: kuaifan Date: Thu, 9 Dec 2021 15:46:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=84=9A=E6=9C=AC=E5=91=BD?= =?UTF-8?q?=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 8 +++++++- README_CN.md | 8 +++++++- cmd | 3 +++ 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7aee32d41..15396776c 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,13 @@ cd dootask # 3、Build project ./cmd install ``` -Installed, project url: **`http://IP:PORT`**(`PORT`Default is`2222`)。 + +### Reset password + +```bash +# Reset default account password +./cmd repassword +``` ### Change port diff --git a/README_CN.md b/README_CN.md index 85324b547..1679f6ed3 100644 --- a/README_CN.md +++ b/README_CN.md @@ -26,7 +26,13 @@ cd dootask # 3、一键构建项目 ./cmd install ``` -安装完毕,项目地址为:**`http://IP:PORT`**(`PORT`默认为`2222`)。 + +### 重置密码 + +```bash +# 重置默认管理员密码 +./cmd repassword +``` ### 更换端口 diff --git a/cmd b/cmd index 0e13872c0..c0fd79f21 100755 --- a/cmd +++ b/cmd @@ -230,6 +230,9 @@ if [ $# -gt 0 ]; then rm -rf "./docker/log/supervisor" find "./storage/logs" -name "*.log" | xargs rm -rf echo -e "${OK} ${GreenBG} 卸载完成 ${Font}" + elif [[ "$1" == "repassword" ]]; then + shift 1 + run_exec mariadb "sh /etc/mysql/repassword.sh" elif [[ "$1" == "dev" ]] || [[ "$1" == "development" ]]; then shift 1 run_compile dev