Skip to content

Commit

Permalink
feat: 🎸 调整默认清理间隔
Browse files Browse the repository at this point in the history
  • Loading branch information
monlor committed May 29, 2024
1 parent b9887df commit 1640350
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion alist/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,6 @@ docker run -d -p 5678:80 -p 2345:2345 -p 2346:2346 --restart=unless-stopped --na

`AUTO_UPDATE_ENABLED`: 自动更新小雅的文件,true/false

`AUTO_CLEAR_ENABLED`: 自动清理阿里云云盘的文件,true/false
`AUTO_CLEAR_ENABLED`: 自动清理阿里云云盘的文件,true/false

`AUTO_CLEAR_INTERVAL`: 自动清理间隔,单位小时,默认24小时
2 changes: 1 addition & 1 deletion alist/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ fi

if [ "${AUTO_CLEAR_ENABLED:=true}" = "true" ]; then
echo "启动定时清理定时任务..."
crontabs="${crontabs}\n*/${AUTO_CLEAR_INTERVAL:=180} * * * * /clear.sh"
crontabs="${crontabs}\n* */${AUTO_CLEAR_INTERVAL:=24} * * * /clear.sh"
fi

echo -e "$crontabs" | crontab -
Expand Down

0 comments on commit 1640350

Please sign in to comment.