This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
hostport=(${1//:/ }) | |
HOST=${hostport[0]} | |
PORT=${hostport[1]} | |
echo "Start waiting for Redis fully start. Host '$HOST', '$PORT'..." | |
echo "Try ping Redis... " | |
PONG=`redis-cli -h $HOST -p $PORT ping | grep PONG` | |
while [ -z "$PONG" ]; do |