Browse Source

Remove randomly generated directories

master
Les De Ridder 3 years ago
parent
commit
a4f8aaaabb
No known key found for this signature in database GPG Key ID: 5EC132DFA85DB372
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      includes/check.sh

+ 1
- 1
includes/check.sh View File

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

Loading…
Cancel
Save