This commit is contained in:
Your Name
2025-05-05 21:12:50 +12:00
parent e727fc518f
commit 63490d9ce3
16 changed files with 127 additions and 75 deletions

View File

@ -9,9 +9,7 @@ _check_required_env_vars
bash ./uninstall.sh || _die "Failed to uninstall service before restore"
# restore data from backup file
if ! autorestore volume=$DATA_VOLUME volume=$CONFIG_VOLUME "$1" "$2"; then
_die "Failed to restore data from backup file"
fi
autorestore "$1" "$2" "volume=$DATA_VOLUME" "volume=$CONFIG_VOLUME" || _die "Failed to restore data from backup file"
# reinstall service
bash ./install.sh || _die "Failed to reinstall service after restore"