Add fix from anarcat for ${configdirectory} in ninjahelper, also add -L to find to...
authorMicah Anderson <micah@riseup.net>
Sat, 10 Jun 2006 16:09:59 +0000 (16:09 +0000)
committerMicah Anderson <micah@riseup.net>
Sat, 10 Jun 2006 16:09:59 +0000 (16:09 +0000)
directory is actually not a directory, but instead a symlink to somewhere else

ChangeLog
src/ninjahelper.in

index 2edbef947800a2089adcf496fe013cfac0f59b61..ac802d13b5b8be973d5ff82547256efc765589d4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -9,7 +9,7 @@ version 0.9.4 -- unreleased
           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
+          symlinks for $configdirectory
     handler changes
        Added tar handler
        mysql:
@@ -53,6 +53,9 @@ version 0.9.4 -- unreleased
         . found_vservers: escaped special grep repetition character +
     ninjahelper changes
         . Recursively ignore subdirs in /etc/backup.d (Closes: #361102)
+        . Fix configdirectory error that forced you to use /etc/backup.d, thanks anarcat
+        . When determining which backup actions to list, find now follows
+           symlinks for $configdirectory
     changed cron permissions to 644
     minor documentation fixes
 
index 3aef3f655aa50973e6dcac3caffb2be69af2fd35..01164611b1361cf7d8cf5a4ea42db4bfce918dc0 100755 (executable)
@@ -257,7 +257,7 @@ while true; do
 menulist=
 action=
 let "i = 1"
-for file in `find $conf/etc/backup.d/ -mindepth 1 -maxdepth 1 -type f ! -name '.*.swp' | sort -n`; do
+for file in `find -L ${configdirectory} -mindepth 1 -maxdepth 1 -type f ! -name '.*.swp' | sort -n`; do
    menulist="$menulist $i $file"
    actions[$i]=$file
    let "i += 1"