Skip to content

Fix path in backup.pp and reset pgrepack schema task #74

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 30, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion files/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ fail() {
# Print a stderr: entry if there were anything printed to stderr
if [[ -s $_tmp ]]; then
# Hack to try and output valid json by replacing newlines with spaces.
echo "{ \"status\": \"error\", \"message\": \"$1\", \"stderr\": \"$(tr '\n' ' ' <$_tmp)\" }"
echo "{ \"status\": \"error\", \"message\": \"$1\", \"stderr\": \"$(tr '\n' ' ' <$_tmp)\" }"
else
echo "{ \"status\": \"error\", \"message\": \"$1\" }"
fi
Expand Down
2 changes: 1 addition & 1 deletion manifests/backup.pp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@

# Reset the crontab for pe-postgres if the (databases backed up by default every day) change.
exec { 'reset_pe-postgres_crontab':
path => '/usr/local/bin/:/bin/',
path => '/usr/local/bin/:/bin/:/usr/bin',
command => 'crontab -r -u pe-postgres',
onlyif => 'crontab -l -u pe-postgres',
refreshonly => true,
Expand Down
2 changes: 1 addition & 1 deletion tasks/reset_pgrepack_schema.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

# Puppet Task Name: reset_pgrepack_schema
declare PT__installdir
Expand Down