We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a51d1ce commit 6777bcdCopy full SHA for 6777bcd
tasks/reset_pgrepack_schema.sh
@@ -1,12 +1,12 @@
1
-#!/bin/sh
+#!/bin/bash
2
3
# Puppet Task Name: reset_pgrepack_schema
4
declare PT__installdir
5
# shellcheck disable=SC1090
6
source "$PT__installdir/pe_databases/files/common.sh"
7
8
#Determine if PE Postgres is available
9
-if puppet resource service pe-postgresql | grep -q running; then
+if puppet resource service pe-postgresql | $(/usr/bin/which grep) -q running; then
10
#Remove the pg_repack extension
11
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"
12
0 commit comments