Skip to content

Commit 2fbd3c4

Browse files
committed
Fix getent
1 parent dad4095 commit 2fbd3c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

9.5/docker-entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ done
1111
psql -h $PG_HOST -c "WITH foo AS (SELECT COUNT(*) AS count FROM pg_replication_slots WHERE slot_name='pghoard') SELECT pg_create_physical_replication_slot('pghoard') FROM foo WHERE count=0;" -U replicator -d postgres
1212

1313
echo "Create pghoard configuration with confd ..."
14-
if $(getent rancher-metadata); then
14+
if $(getent hosts rancher-metadata); then
1515
confd -onetime -backend rancher -prefix /2015-12-19
1616
else
1717
confd -onetime -backend env

0 commit comments

Comments
 (0)