on reboot. So we've to make sure that our subdir in /var/lock is
created with approriate permissions before we touch the lockfile.
FTP_HOST=uxxx.your-backup.de
PROTO=ssh
ROOTMAIL="root@localhost"
-LOCKFILE="/var/lock/backup/hetznerbackup"
+LOCKDIR="/var/lock/backup"
+LOCKFILE="$LOCKDIR/hetznerbackup"
LOGFILE="/var/log/hetznerbackup"
SESSIONLOG=$(mktemp /var/tmp/hetznerbackup.XXXXXXXXX)
ERRSTAT=0
echo "This is a typical result of a failed backup run, please contact your admin"
exit 5
else
+ if [ ! -d $LOCKDIR ]; then
+ mkdir -m 700 $LOCKDIR
+ fi
touch $LOCKFILE
fi