Skip to content

Commit 18e7473

Browse files
authored
v1.0.4 (#5)
Minor updates & bug fixes * Fixing healthcheck
1 parent e337756 commit 18e7473

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.3
1+
1.0.4

overlay/usr/local/bin/healthcheck

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,10 @@ export BF_E=`basename ${0}`
55

66

77
#======================================================================================================================
8-
# Copyright (c) 2015 Thomas Boerger <https://webhippie.de>
9-
# Originally from https://github.com/dockhippie/mariadb/blob/master/latest/overlay/etc/s6/mariadb/run
10-
#
11-
# Modifications copyright (c) 2021 bfren
8+
# Perform a basic sql command to check the server is running.
129
#======================================================================================================================
1310

14-
CHECK=$(psql -U postgres -c "SELECT 1;" 2>/dev/null | tail -n3 | head -n1)
11+
CHECK=$(psql -U postgres -c "SELECT 1;" 2>/dev/null | tail -n3 | head -n1 | xargs)
1512

1613
[[ "${CHECK}" == "1" ]] && exit 0
1714
exit 1

0 commit comments

Comments
 (0)