Add 26 files
All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 8s
All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 8s
This commit is contained in:
16
immich/stop.sh
Executable file
16
immich/stop.sh
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
# shellcheck disable=SC1091
|
||||
source "${AGENT_PATH}/common.sh"
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
|
||||
_check_required_env_vars "CONTAINER_NAME"
|
||||
|
||||
echo "Stopping ${CONTAINER_NAME}..."
|
||||
|
||||
cd "$SCRIPT_DIR" || _die "Failed to change to script directory"
|
||||
|
||||
[ -f docker-compose.yml ] || _die "docker-compose.yml not found."
|
||||
|
||||
docker compose stop || _die "Failed to stop containers"
|
||||
|
||||
echo "Immich containers stopped."
|
||||
Reference in New Issue
Block a user