优化脚本命令

This commit is contained in:
kuaifan 2021-12-09 15:46:48 +08:00
parent 6c577daf5d
commit 4c3827158f
3 changed files with 17 additions and 2 deletions

View File

@ -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

View File

@ -26,7 +26,13 @@ cd dootask
# 3、一键构建项目
./cmd install
```
安装完毕,项目地址为:**`http://IP:PORT`**`PORT`默认为`2222`)。
### 重置密码
```bash
# 重置默认管理员密码
./cmd repassword
```
### 更换端口

3
cmd
View File

@ -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