File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed
Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change 1- 1.0.3
1+ 1.0.4
Original file line number Diff line number Diff 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
1714exit 1
You can’t perform that action at this time.
0 commit comments