Templates.

This commit is contained in:
Your Name
2025-05-24 20:43:56 +12:00
parent 2589c84f4d
commit 41287ec041
10 changed files with 39 additions and 42 deletions

17
static-website/destroy.sh Executable file
View File

@ -0,0 +1,17 @@
#!/bin/bash
source "${AGENT_PATH}/common.sh"
_check_required_env_vars "LOCAL_DATA_FOLDER" "CONTAINER_NAME"
# Removes container and local data folder.
# Call uninstall script first
./uninstall.sh
datadestroy "path=${LOCAL_DATA_FOLDER}" || _die "Failed to Destroy ${LOCAL_DATA_FOLDER}"
if [ -d "${LOCAL_DATA_FOLDER}" ]; then
echo "datadestroy failed to remove ${LOCAL_DATA_FOLDER}"
exit 1
fi
echo "Destroyed ${CONTAINER_NAME}."