This commit is contained in:
Adil Hafeez 2024-10-26 14:28:25 -07:00
parent 78af11b6a0
commit b1da19588d
2 changed files with 4 additions and 3 deletions

View file

@ -1,12 +1,12 @@
#!/bin/bash
#!/bin/sh
function log() {
log() {
timestamp=$(date +"%Y-%m-%d %H:%M:%S")
message="$*"
echo "$timestamp: $message"
}
function wait_for_healthz() {
wait_for_healthz() {
local healthz_url="$1"
local timeout_seconds="${2:-30}" # Default timeout of 30 seconds
local sleep_between="${3:-1}" # Default sleep of 1 seconds

View file

@ -1,3 +1,4 @@
#/bin/sh
# if any of the commands fail, the script will exit
set -e