]> jfr.im git - uguu.git/blobdiff - README.md
Update README.md
[uguu.git] / README.md
index 9b3296aa70ffb7fcaf1649b015dc0393756cb317..b22b50296967b54181ede749522f650dd62f88ce 100644 (file)
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
 # Uguu
 
-uguu is a simple file uploading and sharing platform.
+Uguu is a simple temporary file uploading and sharing platform where files get deleted after 24 hours.
 
 ## Features
 
@@ -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
 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
 0,30 * * * * bash /path/to/checkfiles.sh
 0,30 * * * * bash /path/to/checkdb.sh
@@ -77,8 +84,6 @@ Edit checkdb.sh and checkfiles.sh to the proper paths then add them to your cron
 
 These scripts check if DB entries and files are older then 24 hours and if they are deletes them.
 
-Example nginx configs can be found in confs/.
-
 ## Using SQLite as DB engine
 
 We need to create the SQLite database before it may be used by uguu.