X-Git-Url: https://jfr.im/git/uguu.git/blobdiff_plain/660b976c3e165a5dd9a13a3c52c43450e3e6f9f2..90b86d2163903e8815d0c7ab751e15d185abdee8:/includes/check.sh diff --git a/includes/check.sh b/includes/check.sh index 9eb25f4..6619ff9 100644 --- a/includes/check.sh +++ b/includes/check.sh @@ -1,2 +1,2 @@ #! /bin/sh -find $(grep -oP '"CONFIG_FILES_PATH", "\K(.*)(?=")' config.php) -mtime +$(grep -oP '"CONFIG_MAX_RETENTION_TIME", "\K(.*)(?=")' config.php) -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 {} \;