summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorSimon Rettberg2015-06-17 15:54:51 +0200
committerSimon Rettberg2015-06-17 15:54:51 +0200
commitef4bb7ee0933d6f850f94b542d0617b181c22fdb (patch)
tree4c294199d242b78ec90f1f5a188bef702c1fa062 /scripts
parentUpdate CreateAdConfig to match new ldadp config format (diff)
downloadtmlite-bwlp-ef4bb7ee0933d6f850f94b542d0617b181c22fdb.tar.gz
tmlite-bwlp-ef4bb7ee0933d6f850f94b542d0617b181c22fdb.tar.xz
tmlite-bwlp-ef4bb7ee0933d6f850f94b542d0617b181c22fdb.zip
Add new tasks, add timeouts to system process tasks
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"