-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstop.sh
More file actions
executable file
·21 lines (19 loc) · 742 Bytes
/
stop.sh
File metadata and controls
executable file
·21 lines (19 loc) · 742 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env bash
###############################################################################
# Stop the environment.
#
# Copyright 2025 William W. Kimball, Jr. MBA MSIS
# All rights reserved.
###############################################################################
# Constants
MY_DIRECTORY="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
LIB_DIRECTORY="${MY_DIRECTORY}/lib"
DOCKER_HELPER_DIRECTORY="${LIB_DIRECTORY}/docker"
readonly MY_DIRECTORY LIB_DIRECTORY DOCKER_HELPER_DIRECTORY
# Import the shell helpers
if ! source "${LIB_DIRECTORY}/shell-helpers.sh"; then
echo "ERROR: Failed to import shell helpers!" >&2
exit 2
fi
# Pass control to the docker helper script
exec "${DOCKER_HELPER_DIRECTORY}/compose-stop.sh" "$@"