diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/system-restore | 3 |
1 files changed, 3 insertions, 0 deletions
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" |