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 ae53e1c6ad
commit 4c694eb6f3
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