From 657d5418619e59c9a33345e0c790ef3f3b126bac Mon Sep 17 00:00:00 2001 From: micah Date: Sat, 10 Jun 2006 13:40:22 +0000 Subject: [PATCH] the find that looks in /etc/backup.d didn't follow symlinks and would instead fail silently causing me much confusion, so I added -L to find and an if statement to spit something out so its obvious git-svn-id: http://code.autistici.org/svn/backupninja/trunk@410 758a04ac-41e6-0310-8a23-8373a73cc35d --- ChangeLog | 2 ++ src/backupninja.in | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 7e97015..2edbef9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -8,6 +8,8 @@ version 0.9.4 -- unreleased and complains about group-readable files only when the group differs from the one in the configuration file (default is root as before). Thanks to Martin Krafft for the patch (Closes: #370396). + . When determining which backup actions to make, find now follows + symlinks for /etc/backup.d handler changes Added tar handler mysql: diff --git a/src/backupninja.in b/src/backupninja.in index 57936da..16ac7a7 100755 --- a/src/backupninja.in +++ b/src/backupninja.in @@ -476,7 +476,11 @@ errormsg="" if [ "$singlerun" ]; then files=$singlerun else - files=`find $configdirectory -mindepth 1 -maxdepth 1 -type f ! -name '.*.swp' | sort -n` + files=`find -L $configdirectory -mindepth 1 -maxdepth 1 -type f ! -name '.*.swp' | sort -n` + + if [ -z "$files" ]; then + fatal "No backup actions configured in '$configdirectory', run ninjahelper!" + fi fi for file in $files; do -- 2.30.2