fixes
This commit is contained in:
parent
15a45694b6
commit
2266b5c050
|
@ -37,27 +37,6 @@ do
|
|||
esac
|
||||
done
|
||||
|
||||
if [[ -f /etc/btrbk/btrbk.conf ]]; then
|
||||
function finish {
|
||||
sync
|
||||
if [ "${poweroff}" = "y" ]; then
|
||||
shutdown -h now
|
||||
fi
|
||||
sleep 4
|
||||
echo "FERTIG"
|
||||
rm -rf /tmp/backup
|
||||
}
|
||||
trap finish EXIT
|
||||
|
||||
if ! btrbk --progress --quiet run backup; then
|
||||
btrbk --progress --quiet clean
|
||||
echo "Wegen Fehler nicht herunterfahren."
|
||||
poweroff=n
|
||||
echo "fail: btrbk --progress --quiet run backup"
|
||||
fi
|
||||
exit
|
||||
fi
|
||||
|
||||
if [[ -f "${backupcfg}" ]]; then
|
||||
source "${backupcfg}"
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue
Block a user