Skip to content

Commit fc33a81

Browse files
author
Diego Rodríguez Baquero
authored
chore(reload.sh): default PRE_UPDATE_WAIT_DIVISOR (#472)
1 parent 87f7bb5 commit fc33a81

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

container/reload.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#!/bin/bash
22
set -eu
33

4+
# Set a default value for PRE_UPDATE_WAIT_DIVISOR if it's not already set
5+
: "${PRE_UPDATE_WAIT_DIVISOR:=3600}"
6+
47
time=$((RANDOM % PRE_UPDATE_WAIT_DIVISOR))
58
echo "going to wait $time seconds before updating"
69
sleep "$time"

0 commit comments

Comments
 (0)