We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4365617 commit 3779a36Copy full SHA for 3779a36
2 files changed
docker-compose.yaml
@@ -10,7 +10,7 @@ services:
10
- FTP_USER=36node
11
- FTP_PASSWORD=123456
12
- FTP_SERVER=192.168.5.112
13
- # - FTP_REMOTE_DIR=/ht 路径必须以 / 开头
+ # - FTP_REMOTE_DIR=/ht 路径必须以 / 开头 如果根目录不需要填
14
- FTP_RETAIN_DAYS=7
15
16
ftp:
docker/entrypoint.sh
@@ -21,7 +21,7 @@ curlftpfs ftp://$FTP_USER:$FTP_PASSWORD@$FTP_SERVER$FTP_REMOTE_DIR /mnt/ftp -o a
21
if [ -n "$FTP_RETAIN_DAYS" ]; then
22
echo "Starting cron as FTP_RETAIN_DAYS is set to $FTP_RETAIN_DAYS"
23
# 配置 crontab 每 5 分钟执行一次
24
- echo "*/2 * * * * /clear.sh >> /var/log/cron.log 2>&1" | crontab -
+ echo "*/5 * * * * /clear.sh >> /var/log/cron.log 2>&1" | crontab -
25
# 启动 cron 服务
26
service cron start
27
else
0 commit comments