mirror of
https://github.com/nokonoko/Uguu.git
synced 2024-01-06 13:35:15 +00:00
scripts config
This commit is contained in:
parent
3ffab18a49
commit
29a5df7517
@ -69,7 +69,14 @@ increase POST size limits in `php.ini` and webserver configuration. For PHP,
|
|||||||
modify `upload_max_filesize` and `post_max_size` values. The configuration
|
modify `upload_max_filesize` and `post_max_size` values. The configuration
|
||||||
option for nginx webserver is `client_max_body_size`.
|
option for nginx webserver is `client_max_body_size`.
|
||||||
|
|
||||||
Edit checkdb.sh and checkfiles.sh to the proper paths then add them to your crontab:
|
Edit checkdb.sh and checkfiles.sh to the proper paths:
|
||||||
|
```bash
|
||||||
|
sqlite3 /path/to/db/uguu.sq3 "DELETE FROM files WHERE date <= strftime('%s', datetime('now', '-1 day'));"
|
||||||
|
```
|
||||||
|
```bash
|
||||||
|
find /path/to/files/ -mmin +1440 -exec rm -f {} \;
|
||||||
|
```
|
||||||
|
Then add them to your crontab:
|
||||||
```bash
|
```bash
|
||||||
0,30 * * * * bash /path/to/checkfiles.sh
|
0,30 * * * * bash /path/to/checkfiles.sh
|
||||||
0,30 * * * * bash /path/to/checkdb.sh
|
0,30 * * * * bash /path/to/checkdb.sh
|
||||||
|
Loading…
Reference in New Issue
Block a user