dsnap-sync: rebase to an FHS structure

This commit is contained in:
2018-06-05 15:55:56 +02:00
parent b154c7def0
commit bcbe5e1cd9
6 changed files with 30 additions and 431 deletions

15
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