From 16e062ee12e80a2dab7f52b1bceed9e6edd1c2f3 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 24 Feb 2020 12:35:14 +0100 Subject: scripts/system-restore: Run post-restore scripts --- scripts/system-restore | 6 ++++++ 1 file changed, 6 insertions(+) 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" -- cgit v1.2.3-55-g7522