Templates.
This commit is contained in:
9
caddy/destroy.sh
Executable file
9
caddy/destroy.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
source "${AGENT_PATH}/common.sh"
|
||||
_check_required_env_vars
|
||||
|
||||
./uninstall.sh
|
||||
|
||||
datadestroy "volume=$DATA_VOLUME" "volume=$CONFIG_VOLUME" || _die "Failed to Destroy"
|
||||
|
||||
echo "Destroyed ${CONTAINER_NAME}."
|
@@ -1,11 +0,0 @@
|
||||
#!/bin/bash
|
||||
source "${AGENT_PATH}/common.sh"
|
||||
_check_required_env_vars
|
||||
|
||||
# NUKE SCRIPT
|
||||
|
||||
./uninstall.sh
|
||||
|
||||
datanuke "volume=$DATA_VOLUME" "volume=$CONFIG_VOLUME" || _die "Failed to nuke"
|
||||
|
||||
echo "Nuking of ${CONTAINER_NAME} complete."
|
Reference in New Issue
Block a user