summaryrefslogtreecommitdiffstats
path: root/Bash
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2016-04-15 19:08:24 +0200
committerThomas Lange <code@nerdmind.de>2016-04-15 19:08:24 +0200
commited797cbf4880cf5eed4860fa59d6e2c5d3b2deb3 (patch)
treee6401b7ce60be2bb50eff6c651a6dd3c5a62d227 /Bash
parentf29a3163edaaa9cd075f9576c4342dd567bbbf44 (diff)
downloadsnippets-ed797cbf4880cf5eed4860fa59d6e2c5d3b2deb3.tar.gz
snippets-ed797cbf4880cf5eed4860fa59d6e2c5d3b2deb3.tar.xz
snippets-ed797cbf4880cf5eed4860fa59d6e2c5d3b2deb3.zip
Bugfix: Added -maxdepth parameter
Diffstat (limited to 'Bash')
-rwxr-xr-x[-rw-r--r--]Bash/virtualhosts-backup.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/Bash/virtualhosts-backup.sh b/Bash/virtualhosts-backup.sh
index f207d9a..0c6fce2 100644..100755
--- a/Bash/virtualhosts-backup.sh
+++ b/Bash/virtualhosts-backup.sh
@@ -35,7 +35,7 @@ DIRECTORY_FROM="/var/www/"
#===============================================================================
# Delete old backups in backup root directory
#===============================================================================
-find "${DIRECTORY_ROOT}" -type d -mtime +14 -exec rm --recursive {} \;
+find "${DIRECTORY_ROOT}"* -maxdepth 0 -type d -mtime +14 -exec rm --recursive {} \;
#===============================================================================
# Create backup path directory if not exists