... | ... | @@ -5,7 +5,7 @@ Lufi have commands which can be used in cron jobs. |
|
|
To see what commands are available:
|
|
|
|
|
|
```
|
|
|
carton exec script/lufi cron
|
|
|
cd /var/www/lufi && carton exec script/lufi cron
|
|
|
```
|
|
|
|
|
|
It is recommended to execute the cron tasks once a day:
|
... | ... | @@ -19,7 +19,7 @@ It is recommended to execute the cron tasks once a day: |
|
|
To automatically delete the IP addresses of file's senders after a configurable delay:
|
|
|
|
|
|
```
|
|
|
carton exec script/lufi cron cleanbdd --mode production
|
|
|
cd /var/www/lufi && carton exec script/lufi cron cleanbdd --mode production
|
|
|
```
|
|
|
|
|
|
## Delete expired files
|
... | ... | @@ -28,7 +28,7 @@ To automatically delete files which availability delay is over (when you choose |
|
|
If `delete_no_longer_viewed_files` is set, the files not viewed since `delete_no_longer_viewed_files` days will be deleted too.
|
|
|
|
|
|
```
|
|
|
carton exec script/lufi cron cleanfiles --mode production
|
|
|
cd /var/www/lufi && carton exec script/lufi cron cleanfiles --mode production
|
|
|
```
|
|
|
|
|
|
## Watch the size of the files directory
|
... | ... | @@ -43,7 +43,7 @@ The available actions are `warn`, `stop-upload` and `delete`: |
|
|
If the files directory go under quota, the `stop-upload` file is deleted. If you want to manually prevents uploading, create a file named `stop-upload.manual`.
|
|
|
|
|
|
```
|
|
|
carton exec script/lufi cron watch --mode production
|
|
|
cd /var/www/lufi && carton exec script/lufi cron watch --mode production
|
|
|
```
|
|
|
|
|
|
-------
|
... | ... | |