Add 4 and update 16 files
All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 20s
All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 20s
This commit is contained in:
@@ -1,15 +1,16 @@
|
||||
#!/bin/bash
|
||||
source "${AGENT_PATH}/common.sh"
|
||||
source "$(dirname "$0")/_volumes.sh"
|
||||
_check_required_env_vars
|
||||
|
||||
# RESTORE SCRIPT
|
||||
|
||||
|
||||
# uninstall container before restore
|
||||
./uninstall.sh || _die "Failed to uninstall service before restore"
|
||||
|
||||
# restore data from backup file
|
||||
datarestore "$1" "$2" "volume=$DATA_VOLUME" "volume=$CONFIG_VOLUME" || _die "Failed to restore data from backup file"
|
||||
# shellcheck disable=SC2046
|
||||
restore_items $(get_caddy_volumes) || _die "Failed to restore data from backup file"
|
||||
|
||||
# reinstall service
|
||||
./install.sh || _die "Failed to reinstall service after restore"
|
||||
|
Reference in New Issue
Block a user