In a mess while refactor!

This commit is contained in:
Your Name
2025-05-03 21:46:32 +12:00
parent c6b7e2bb41
commit 0c2b90cf8e
34 changed files with 938 additions and 42 deletions

15
templates/caddy/nuke.sh Normal file
View File

@ -0,0 +1,15 @@
#!/bin/bash
# NUKE SCRIPT
# This is run after the uninstall.sh script to delete all data.
# dropshell handles the configuration files, so we just need to remove
# any docker volumes and any custom local data folders.
source "$(dirname "$0")/_common.sh"
check_required_env_vars "CONTAINER_NAME" "DATA_VOLUME" "CONFIG_VOLUME" "CONFIG_PATH"
if ! autonuke volume=$DATA_VOLUME volume=$CONFIG_VOLUME; then
die "Failed to nuke"
fi
echo "Nuking of ${CONTAINER_NAME} complete."