From dd149dab6f092823004b77479ec74d875c1fdd16 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 17 May 2025 12:27:29 +1200 Subject: [PATCH] test agent_path --- example-nginx/ports.sh | 2 ++ example-nginx/status.sh | 1 + 2 files changed, 3 insertions(+) diff --git a/example-nginx/ports.sh b/example-nginx/ports.sh index edb1534..deb9747 100755 --- a/example-nginx/ports.sh +++ b/example-nginx/ports.sh @@ -1,5 +1,7 @@ #!/bin/bash +[ ! -z "$AGENT_PATH" ] || { echo "AGENT_PATH is not set"; exit 1; } source "${AGENT_PATH}/_common.sh" + _check_required_env_vars "HOST_PORT" # Nginx Example Ports Script diff --git a/example-nginx/status.sh b/example-nginx/status.sh index 86ba20f..cadc8ef 100755 --- a/example-nginx/status.sh +++ b/example-nginx/status.sh @@ -1,4 +1,5 @@ #!/bin/bash +[ ! -z "$AGENT_PATH" ] || { echo "AGENT_PATH is not set"; exit 1; } source "${AGENT_PATH}/_common.sh" _check_required_env_vars "CONTAINER_NAME"