Skip to content

Commit 7168d72

Browse files
Daniel CarabasMartyEwings
Daniel Carabas
authored andcommitted
Fix path in backup.pp and reset pgrepack schema task
1 parent 25c1d4e commit 7168d72

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

files/common.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ fail() {
77
# Print a stderr: entry if there were anything printed to stderr
88
if [[ -s $_tmp ]]; then
99
# Hack to try and output valid json by replacing newlines with spaces.
10-
echo "{ \"status\": \"error\", \"message\": \"$1\", \"stderr\": \"$(tr '\n' ' ' <$_tmp)\" }"
10+
echo "{ \"status\": \"error\", \"message\": \"$1\", \"stderr\": \"$(tr '\n' ' ' <$_tmp)\" }"
1111
else
1212
echo "{ \"status\": \"error\", \"message\": \"$1\" }"
1313
fi

manifests/backup.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656

5757
# Reset the crontab for pe-postgres if the (databases backed up by default every day) change.
5858
exec { 'reset_pe-postgres_crontab':
59-
path => '/usr/local/bin/:/bin/',
59+
path => '/usr/local/bin/:/bin/:/usr/bin',
6060
command => 'crontab -r -u pe-postgres',
6161
onlyif => 'crontab -l -u pe-postgres',
6262
refreshonly => true,

tasks/reset_pgrepack_schema.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/bin/bash
22

33
# Puppet Task Name: reset_pgrepack_schema
44
declare PT__installdir

0 commit comments

Comments
 (0)