biiig wrench

This commit is contained in:
Your Name
2025-05-03 22:58:39 +12:00
parent 107034cf7b
commit 340170b248
51 changed files with 347 additions and 395 deletions

14
templates/watchtower/stop.sh Executable file → Normal file
View File

@ -1,9 +1,13 @@
#!/bin/bash
source "$(dirname "$0")/_common.sh"
source "${AGENT_PATH}/_common.sh"
# Required environment variables
check_required_env_vars "CONTAINER_NAME"
# Watchtower Stop Script
_stop_container $CONTAINER_NAME || die "Failed to stop container ${CONTAINER_NAME}"
echo "Container ${CONTAINER_NAME} stopped"
# Load service environment variables
source ./service.env
_check_required_env_vars "CONTAINER_NAME"
echo "Stopping service ${CONTAINER_NAME}..."
_stop_container $CONTAINER_NAME || _die "Failed to stop container ${CONTAINER_NAME}"
echo "Service ${CONTAINER_NAME} stopped."