diff --git a/VERSION b/VERSION index e4c0d46..a6a3a43 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.0.3 \ No newline at end of file +1.0.4 \ No newline at end of file diff --git a/overlay/usr/local/bin/healthcheck b/overlay/usr/local/bin/healthcheck index abb2ea6..2a373bf 100644 --- a/overlay/usr/local/bin/healthcheck +++ b/overlay/usr/local/bin/healthcheck @@ -5,13 +5,10 @@ export BF_E=`basename ${0}` #====================================================================================================================== -# Copyright (c) 2015 Thomas Boerger -# Originally from https://github.com/dockhippie/mariadb/blob/master/latest/overlay/etc/s6/mariadb/run -# -# Modifications copyright (c) 2021 bfren +# Perform a basic sql command to check the server is running. #====================================================================================================================== -CHECK=$(psql -U postgres -c "SELECT 1;" 2>/dev/null | tail -n3 | head -n1) +CHECK=$(psql -U postgres -c "SELECT 1;" 2>/dev/null | tail -n3 | head -n1 | xargs) [[ "${CHECK}" == "1" ]] && exit 0 exit 1