Remove randomly generated directories

This commit is contained in:
Les De Ridder 2017-02-20 02:55:21 +01:00
rodič 2cd0b2af81
revize a4f8aaaabb
V databázi nebyl nalezen žádný známý klíč pro tento podpis
ID GPG klíče: 5EC132DFA85DB372
1 změnil soubory, kde provedl 1 přidání a 1 odebrání

Zobrazit soubor

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