uguu/includes/check.sh

3 lines
180 B
Bash
Raw Permalink Normal View History

2015-02-11 18:18:38 +01:00
#! /bin/sh
2017-02-20 02:55:21 +01:00
find $(grep -oP '"CONFIG_FILES_PATH", "\K(.*)(?=")' config.php) -mindepth 1 -mmin +$(grep -oP '"CONFIG_MAX_RETENTION_TIME", "\K(.*)(?=")' config.php) -exec rm -rf {} \;