Skip to content

Commit b099a3a

Browse files
Merge pull request #74 from carabasdaniel/fix-paths
Fix path in backup.pp and reset pgrepack schema task
2 parents d78f86b + 7168d72 commit b099a3a

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
@@ -57,7 +57,7 @@
5757

5858
# Reset the crontab for pe-postgres if the (databases backed up by default every day) change.
5959
exec { 'reset_pe-postgres_crontab':
60-
path => '/usr/local/bin/:/bin/',
60+
path => '/usr/local/bin/:/bin/:/usr/bin',
6161
command => 'crontab -r -u pe-postgres',
6262
onlyif => 'crontab -l -u pe-postgres',
6363
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)