Skip to content
Snippets Groups Projects
Commit f07f4b87 authored by micah's avatar micah :speech_balloon:
Browse files

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
parent fe7ee521
No related branches found
No related tags found
No related merge requests found
...@@ -8,6 +8,8 @@ version 0.9.4 -- unreleased ...@@ -8,6 +8,8 @@ version 0.9.4 -- unreleased
and complains about group-readable files only when the group differs and complains about group-readable files only when the group differs
from the one in the configuration file (default is root as before). from the one in the configuration file (default is root as before).
Thanks to Martin Krafft for the patch (Closes: #370396). 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 handler changes
Added tar handler Added tar handler
mysql: mysql:
......
...@@ -476,7 +476,11 @@ errormsg="" ...@@ -476,7 +476,11 @@ errormsg=""
if [ "$singlerun" ]; then if [ "$singlerun" ]; then
files=$singlerun files=$singlerun
else 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 fi
for file in $files; do for file in $files; do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment