We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a36bfd1 commit 1c86d14Copy full SHA for 1c86d14
VERSION
@@ -1 +1 @@
1
-1.0.1
+1.0.2
overlay/usr/local/bin/healthcheck
@@ -11,10 +11,7 @@ export BF_E=`basename ${0}`
11
# Modifications copyright (c) 2021 bfren
12
#======================================================================================================================
13
14
-USERNAME=${POSTGRESQL_USERNAME:-root}
15
-PASSWORD=${POSTGRESQL_PASSWORD:-${POSTGRESQL_ROOT_PASSWORD}}
16
-
17
-CHECK="$(echo 'SELECT 1;' | mariadb -h127.0.0.1 -u${USERNAME} -p${PASSWORD} 2>/dev/null | head -n1)"
+CHECK=$(psql -U postgres -c "SELECT 1;" 2>/dev/null | tail -n3 | head -n1)
18
19
[[ "${CHECK}" == "1" ]] && exit 0
20
exit 1
0 commit comments