]> jfr.im git - uguu.git/blobdiff - includes/check.sh
Using the footer template
[uguu.git] / includes / check.sh
index 424f860312213985bfd1102ace9130d47948f46e..9eb25f4b7eb83c0117c10df492f107ac4a7766bd 100644 (file)
@@ -1,2 +1,2 @@
 #! /bin/sh
-find /home/neku/www/files/ -mmin +30 -exec rm -f {} \;
+find $(grep -oP '"CONFIG_FILES_PATH", "\K(.*)(?=")' config.php) -mtime +$(grep -oP '"CONFIG_MAX_RETENTION_TIME", "\K(.*)(?=")' config.php) -exec rm -f {} \;