Revert "rm old file"

This reverts commit 638c3b80e6.

Fixes #53.
This commit is contained in:
James Barnett
2017-08-26 14:17:16 -04:00
parent 217f0f1533
commit c3a0ae0af1

15
find_snapper_config Executable file
View File

@@ -0,0 +1,15 @@
#!/bin/bash
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
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