dsnap-sync: rebase the project tree

This commit is contained in:
2018-06-01 16:28:08 +02:00
parent 4c694eb6f3
commit 8012b67bd5
10 changed files with 1789 additions and 14 deletions

15
src/find_snapper_config Executable file
View File

@@ -0,0 +1,15 @@
#!/bin/sh
etcdirs="sysconfig default conf.d"
for x in $etcdirs; do
d=/etc/$x/snapper
if [ -f $d ]; then
sed -i 's@^SNAPPER_CONFIG=.*@SNAPPER_CONFIG='$d'@g' bin/dsnap-sync
exit 0
fi
done
printf "==> Unable to find snapper configuration file in a standard location.\n"
printf "==> Using SNAPPER_CONFIG make variable.\n"
exit 1