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

View File

@ -2,17 +2,16 @@
source "${AGENT_PATH}/common.sh"
_check_required_env_vars "LOCAL_DATA_FOLDER" "CONTAINER_NAME"
# Nginx Example Nuke Script
# Removes container and local data folder.
# Call uninstall script first
./uninstall.sh
datanuke "path=${LOCAL_DATA_FOLDER}" || _die "Failed to nuke ${LOCAL_DATA_FOLDER}"
datadestroy "path=${LOCAL_DATA_FOLDER}" || _die "Failed to Destroy ${LOCAL_DATA_FOLDER}"
if [ -d "${LOCAL_DATA_FOLDER}" ]; then
echo "datanuke failed to remove ${LOCAL_DATA_FOLDER}"
echo "datadestroy failed to remove ${LOCAL_DATA_FOLDER}"
exit 1
fi
echo "Nuke complete for service ${CONTAINER_NAME}."
echo "Destroyed ${CONTAINER_NAME}."

View File

@ -10,4 +10,4 @@ if _is_container_running $CONTAINER_NAME; then _die "Couldn't stop existing cont
if _is_container_exists $CONTAINER_NAME; then _die "Couldn't remove existing container"; fi
echo "Service ${CONTAINER_NAME} uninstalled."
echo "Note: This does NOT remove the local data folder. Use nuke.sh for that."
echo "Note: This does NOT remove the local data folder. Use destroy for that."