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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user