File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ services:
1010 - FTP_USER=36node
1111 - FTP_PASSWORD=123456
1212 - FTP_SERVER=192.168.5.112
13- # - FTP_REMOTE_DIR=/ht 路径必须以 / 开头
13+ # - FTP_REMOTE_DIR=/ht 路径必须以 / 开头 如果根目录不需要填
1414 - FTP_RETAIN_DAYS=7
1515
1616 ftp :
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ curlftpfs ftp://$FTP_USER:$FTP_PASSWORD@$FTP_SERVER$FTP_REMOTE_DIR /mnt/ftp -o a
2121if [ -n " $FTP_RETAIN_DAYS " ]; then
2222 echo " Starting cron as FTP_RETAIN_DAYS is set to $FTP_RETAIN_DAYS "
2323 # 配置 crontab 每 5 分钟执行一次
24- echo " */2 * * * * /clear.sh >> /var/log/cron.log 2>&1" | crontab -
24+ echo " */5 * * * * /clear.sh >> /var/log/cron.log 2>&1" | crontab -
2525 # 启动 cron 服务
2626 service cron start
2727else
You can’t perform that action at this time.
0 commit comments