summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/system-restore3
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"