]> jfr.im git - uguu.git/blobdiff - includes/check.sh
Update check.sh
[uguu.git] / includes / check.sh
index 61e2aa1de7c98b17d98b7ccb4e1ccc42e7a5e4f1..6619ff9a8811bf66a808933a429e2c6e6d14a51a 100644 (file)
@@ -1,2 +1,2 @@
 #! /bin/sh
-find /home/neku/www/files/ -mmin +1440 -exec rm -f {} \;
+find $(grep -oP '"CONFIG_FILES_PATH", "\K(.*)(?=")' config.php) -mmin +$(grep -oP '"CONFIG_MAX_RETENTION_TIME", "\K(.*)(?=")' config.php) -exec rm -f {} \;