Skip to content

Commit

Permalink
Merge pull request #9 from clearent/script-refactor
Browse files Browse the repository at this point in the history
Fix regex
  • Loading branch information
sjiveson authored Oct 7, 2016
2 parents e9a72e1 + baedd58 commit 17290ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker-keepalived/keepalived.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ if ! [[ $VIRTUAL_IP =~ ^(([1-9]|[1-9][0-9]|1[0-9]{2}|2[0-5][0-5])\.){3}([1-9]|[1
exit 1
fi
if ! [[ $VIRTUAL_MASK =~ ^([1-9]|[1-3][0-2])$ ]]; then
if ! [[ $VIRTUAL_MASK =~ ^([0-9]|[1-2][0-9]|3[0-2])$ ]]; then
echo "The VIRTUAL_MASK environment variable is null or not a valid subnet mask, exiting..."
exit 1
fi
Expand Down

0 comments on commit 17290ec

Please sign in to comment.