From: intrigeri Date: Thu, 13 Jul 2006 20:30:13 +0000 (+0000) Subject: backupninja and ninjahelper: have find following symlinks for config files also work... X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;ds=inline;h=4ecdf09d3b710cbe9310575fe733fa67820d794c;p=matthijs%2Fupstream%2Fbackupninja-vserver.git backupninja and ninjahelper: have find following symlinks for config files also work on sarge, by replacing -L with -follow git-svn-id: http://code.autistici.org/svn/backupninja/trunk@418 758a04ac-41e6-0310-8a23-8373a73cc35d --- diff --git a/src/backupninja.in b/src/backupninja.in index fb6cc16..e4f5ea7 100755 --- a/src/backupninja.in +++ b/src/backupninja.in @@ -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!" diff --git a/src/ninjahelper.in b/src/ninjahelper.in index 0116461..e9b4f9e 100755 --- a/src/ninjahelper.in +++ b/src/ninjahelper.in @@ -257,7 +257,7 @@ while true; do menulist= action= let "i = 1" -for file in `find -L ${configdirectory} -mindepth 1 -maxdepth 1 -type f ! -name '.*.swp' | sort -n`; do +for file in `find ${configdirectory} -follow -mindepth 1 -maxdepth 1 -type f ! -name '.*.swp' | sort -n`; do menulist="$menulist $i $file" actions[$i]=$file let "i += 1"