Skip to content

Commit 6777bcd

Browse files
committed
fix echo pathing for ubuntu
1 parent a51d1ce commit 6777bcd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tasks/reset_pgrepack_schema.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
#!/bin/sh
1+
#!/bin/bash
22

33
# Puppet Task Name: reset_pgrepack_schema
44
declare PT__installdir
55
# shellcheck disable=SC1090
66
source "$PT__installdir/pe_databases/files/common.sh"
77

88
#Determine if PE Postgres is available
9-
if puppet resource service pe-postgresql | grep -q running; then
9+
if puppet resource service pe-postgresql | $(/usr/bin/which grep) -q running; then
1010
#Remove the pg_repack extension
1111
su - pe-postgres -s '/bin/bash' -c '/opt/puppetlabs/server/bin/psql -d pe-puppetdb -c "DROP EXTENSION pg_repack CASCADE"' || fail "unable to drop pg_repack extension"
1212

0 commit comments

Comments
 (0)