entrypoint.sh: cleanups

This commit is contained in:
Sameer Naik 2015-10-17 10:54:53 +05:30
parent 9b17672802
commit e8b2e4d9a1

View File

@ -865,15 +865,16 @@ appInit () {
;;
esac
timeout=60
printf "Waiting for database server to accept connections"
echo -n "Waiting for database server to accept connections"
while ! ${prog} >/dev/null 2>&1
do
timeout=$(expr $timeout - 1)
if [[ $timeout -eq 0 ]]; then
printf "\nCould not connect to database server. Aborting...\n"
echo
echo "Could not connect to database server. Aborting..."
exit 1
fi
printf "."
echo -n "."
sleep 1
done
echo