From ef4bb7ee0933d6f850f94b542d0617b181c22fdb Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 17 Jun 2015 15:54:51 +0200 Subject: Add new tasks, add timeouts to system process tasks --- scripts/system-restore | 3 +++ 1 file changed, 3 insertions(+) (limited to 'scripts') diff --git a/scripts/system-restore b/scripts/system-restore index 5d77dda..dfc5c3a 100755 --- a/scripts/system-restore +++ b/scripts/system-restore @@ -57,6 +57,9 @@ RET=$? if [ $RET -ne 0 ]; then echo "WARNING: Restoring filesystem contents failed with exit code $RET - backup might be incomplete!" fi +# Make sure the directory tree is owned by taskmanager, as tar will create intermediate +# directories as owned by root if they do not exist. +chown -R taskmanager /srv/openslx/www/boot /opt/openslx/configs rm -rf -- "$DIR" rm -f -- "$BACKUP" -- cgit v1.2.3-55-g7522