Some basics working (squashkiwi, dropshell-agent).

This commit is contained in:
Your Name
2025-05-03 23:34:05 +12:00
parent 3d9b1fa6d2
commit 77c7315b0b
50 changed files with 192 additions and 225 deletions

View File

@ -1,19 +1,19 @@
#!/bin/bash
source "${AGENT_PATH}/_common.sh"
check_required_env_vars
_check_required_env_vars
# RESTORE SCRIPT
# uninstall container before restore
bash ./uninstall.sh || die "Failed to uninstall service before restore"
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"
_die "Failed to restore data from backup file"
fi
# reinstall service
bash ./install.sh || die "Failed to reinstall service after restore"
bash ./install.sh || _die "Failed to reinstall service after restore"
echo "Restore complete! Service is running again."