diff options
Diffstat (limited to 'scripts/system-restore')
-rwxr-xr-x | scripts/system-restore | 6 |
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" |