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

View File

@ -1,13 +1,18 @@
#!/bin/bash
source "${AGENT_PATH}/_common.sh"
# PORT SCRIPT
# The port script is OPTIONAL.
# It is used to return the ports used by the service.
# It is called with the path to the server specific env file as an argument.
# Nginx Example Ports Script
source "$(dirname "$0")/_common.sh"
# Required environment variables
# check_required_env_vars "HOST_PORT"
# Load service environment variables
source ./service.env
echo $HOST_PORT
# This template uses HOST_PORT directly if set
# check_required_env_vars "HOST_PORT"
if [ -n "$HOST_PORT" ]; then
echo $HOST_PORT
else
# Default or logic to determine port if not in env
echo 80 # Default Nginx port
fi