Skip to content

Instantly share code, notes, and snippets.

View elbasan's full-sized avatar
:shipit:

Elbasan Kadrija elbasan

:shipit:
View GitHub Profile
#!/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