Fix uninstall script

This commit is contained in:
Your Name
2025-05-03 18:59:38 +12:00
parent fc8a142e91
commit e10704636f
3 changed files with 16 additions and 2 deletions

View File

@ -0,0 +1,14 @@
#!/bin/bash
source "$(dirname "$0")/_common.sh"
check_required_env_vars "CONTAINER_NAME"
if ! _is_container_running "$CONTAINER_NAME"; then
die "Container ${CONTAINER_NAME} is not running. Can't connect to it."
fi
echo "Connecting to ${CONTAINER_NAME}..."
docker exec -it ${CONTAINER_NAME} bash
echo "Disconnected from ${CONTAINER_NAME}"

View File

@ -6,7 +6,7 @@
# It is called with the path to the server specific env file as an argument.
source "$(dirname "$0")/_common.sh"
check_required_env_vars "CONTAINER_NAME" "HOST_PORT" "VOLUME_NAME"
check_required_env_vars "CONTAINER_NAME" "HOST_PORT" "VOLUME_NAME" "WRITE_TOKENS"
# check volume exists.
if ! docker volume inspect "${VOLUME_NAME}" &>/dev/null; then