From e1a304a3dc46d03ebdb26f11b7b7bca825e283a8 Mon Sep 17 00:00:00 2001 From: Ondrej Brablc Date: Fri, 31 May 2024 17:06:59 +0200 Subject: [PATCH] Rename SLEEP env --- docker-cmd.sh | 6 +++--- test.sh | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docker-cmd.sh b/docker-cmd.sh index 0404ce2..316d706 100755 --- a/docker-cmd.sh +++ b/docker-cmd.sh @@ -3,7 +3,7 @@ source ./config.sh source ./logger.sh -SLEEP=${SLEEP:-10s} +LOOP_SLEEP=${LOOP_SLEEP:-10s} test -z "$ALERT_SCRIPT" && log_warn "Env ALERT_SCRIPT not defined - alerting disabled" test -z "$SWARM_NAME" && log_warn "Env SWARM_NAME not defined using default" @@ -50,9 +50,9 @@ function check_services() { log_info "Initial list of services (run services.sh using docker exec to see actual):" ./services.sh -log_info "Entering loop with ${SLEEP} sleep ..." +log_info "Entering loop with ${LOOP_SLEEP} sleep ..." while true; do - sleep $SLEEP + sleep $LOOP_SLEEP check_services done diff --git a/test.sh b/test.sh index a72ba3b..534015e 100755 --- a/test.sh +++ b/test.sh @@ -9,7 +9,7 @@ docker run --rm \ -it \ --name $NAME \ --network $network \ - --env SLEEP="$SLEEP" \ + --env LOOP_SLEEP="$LOOP_SLEEP" \ --env ALERT_SCRIPT="$ALERT_SCRIPT" \ --env SWARM_NAME="$SWARM_NAME" \ --env ZENDUTY_API_KEY="$ZENDUTY_API_KEY" \