1
0
mirror of https://github.com/nokonoko/Uguu.git synced 2024-01-06 13:35:15 +00:00
uguu/includes/check.sh
Illu M. Niggati 90b86d2163 Update check.sh
Fix a small syntax issue. (-mtime is measured in days, not minutes)
2016-10-16 14:25:49 -04:00

3 lines
167 B
Bash

#! /bin/sh
find $(grep -oP '"CONFIG_FILES_PATH", "\K(.*)(?=")' config.php) -mmin +$(grep -oP '"CONFIG_MAX_RETENTION_TIME", "\K(.*)(?=")' config.php) -exec rm -f {} \;