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