Remove randomly generated directories

Cette révision appartient à :
Les De Ridder 2017-02-20 02:55:21 +01:00
Parent 2cd0b2af81
révision a4f8aaaabb
Signature inconnue de Gitea
ID de la clé GPG: 5EC132DFA85DB372
1 fichiers modifiés avec 1 ajouts et 1 suppressions

Voir le fichier

@ -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 {} \;