Skip to content

Commit

Permalink
Update entrypoint.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
lhns committed Nov 29, 2023
1 parent afc2888 commit 5865285
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ export KEEPALIVED_PASSWORD
if [ -z "$KEEPALIVED_PRIORITY" ]; then
KEEPALIVED_PRIORITY="$(echo "$node_labels" | jq -r '.KEEPALIVED_PRIORITY|select(.!=null)')"
fi
if [ -z "$KEEPALIVED_PRIORITY" ]; then
echo "KEEPALIVED_PRIORITY must be set!" >&2
if [ -z "$KEEPALIVED_PRIORITY" ] || (( KEEPALIVED_PRIORITY < 0 || KEEPALIVED_PRIORITY > 255 )); then
echo "KEEPALIVED_PRIORITY must be set between 0 and 255!" >&2
exit 1
fi
export KEEPALIVED_PRIORITY
Expand Down

0 comments on commit 5865285

Please sign in to comment.