harbor/make/photon/postgresql/docker-healthcheck.sh

9 lines
112 B
Bash
Raw Normal View History

#!/bin/sh
psql -h "localhost" -U "postgres" -c 'select 1'
ret_code=$?
if [ $ret_code != 0 ]; then
exit 1
fi