summaryrefslogtreecommitdiffstats
path: root/scripts/system-restore
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/system-restore')
-rwxr-xr-xscripts/system-restore6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/system-restore b/scripts/system-restore
index 1c2f6bb..a044d2d 100755
--- a/scripts/system-restore
+++ b/scripts/system-restore
@@ -155,6 +155,12 @@ fi
# Sync redirect flag file with setting stored in DB
/opt/taskmanager/scripts/install-https --redirect --redirect-only
+# Run all post-restore scripts
+for i in /opt/openslx/restore.d/*/init.sh; do
+ [ -x "$i" ] || continue
+ "$i" || echo "ERROR running post-restore script $i: $?"
+done
+
rm -rf -- "$DIR"
rm -f -- "$BACKUP"