Fix uninstall script
This commit is contained in:
14
templates/simple-object-storage/ssh.sh
Normal file
14
templates/simple-object-storage/ssh.sh
Normal 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}"
|
Reference in New Issue
Block a user