dsnap-sync: rename project and introduce the fork

o distict the dash version from original work of Wes Barnett
o circumvit any name clashes
This commit is contained in:
2018-06-01 15:21:04 +02:00
parent eafa132463
commit 96b71f0094
6 changed files with 66 additions and 63 deletions

View File

@@ -1,11 +1,11 @@
#!/bin/bash
#!/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/snap-sync
if [ -f $d ]; then
sed -i 's@^SNAPPER_CONFIG=.*@SNAPPER_CONFIG='$d'@g' bin/dsnap-sync
exit 0
fi
done