fixes
This commit is contained in:
parent
8f908be592
commit
85df2bad82
|
@ -60,13 +60,17 @@ fi
|
||||||
|
|
||||||
if ! update-grub 2> /dev/null; then
|
if ! update-grub 2> /dev/null; then
|
||||||
echo update-grub failed
|
echo update-grub failed
|
||||||
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${cron}" ]; then
|
if [ "${cron}" ]; then
|
||||||
test -f /etc/void-snapshot.cfg && . /etc/void-snapshot.cfg
|
test -f /etc/void-snapshot.cfg && . /etc/void-snapshot.cfg
|
||||||
if [ "${REGULAR_SNAPSHOT_HOME}" ]; then
|
if [ "${REGULAR_SNAPSHOT_HOME}" ]; then
|
||||||
mkdir -p "/var/lib/backup/quelle/rootfs/system/snapshots/${word}"
|
mkdir -p "/var/lib/backup/quelle/rootfs/system/snapshots/${word}"
|
||||||
btrbk --config="${cfg}" --quiet run "${word}home"
|
if ! btrbk --config="${cfg}" --quiet run "${word}home"; then
|
||||||
|
btrbk --config="${cfg}" --quiet clean "${word}home"
|
||||||
|
echo "fail: btrbk --config=${cfg} --quiet clean ${word}home"
|
||||||
|
exit
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user