backupninja and ninjahelper: have find following symlinks for config files also work...
[matthijs/upstream/backupninja.git] / src / backupninja.in
index fb6cc16e39eea4d4f917662bff30f5b63017c41f..e4f5ea73dc53afd6084b5c6563240e0a14d6c0a1 100755 (executable)
@@ -476,7 +476,7 @@ errormsg=""
 if [ "$singlerun" ]; then
        files=$singlerun
 else
-       files=`find -L $configdirectory -mindepth 1 -maxdepth 1 -type f ! -name '.*.swp' | sort -n`
+       files=`find $configdirectory -follow -mindepth 1 -maxdepth 1 -type f ! -name '.*.swp' | sort -n`
 
        if [ -z "$files" ]; then
                fatal "No backup actions configured in '$configdirectory', run ninjahelper!"