Tidy
This commit is contained in:
13
static-website/uninstall.sh
Executable file
13
static-website/uninstall.sh
Executable file
@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
source "${AGENT_PATH}/common.sh"
|
||||
_check_required_env_vars "CONTAINER_NAME"
|
||||
|
||||
# Nginx Example Uninstall Script
|
||||
|
||||
echo "Uninstalling service ${CONTAINER_NAME}..."
|
||||
_remove_container $CONTAINER_NAME || _die "Failed to remove container ${CONTAINER_NAME}"
|
||||
if _is_container_running $CONTAINER_NAME; then _die "Couldn't stop existing container"; fi
|
||||
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."
|
Reference in New Issue
Block a user