Skip to content
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

New pg_upgrade script #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chtitux
Copy link
Contributor

@chtitux chtitux commented Dec 7, 2020

The script needs to be tested. I was using it from outside the host, with SSH into the host.

Also, it requires to have "sudo" on it. Maybe you don't like that :)

@chtitux chtitux requested a review from paulRbr December 7, 2020 08:53
DATABASE_NAME={{ postgres_dbname }}
DATABASE_PORT={{ postgres_new_cluster_port }}
# Output every line executed and stop on the first error
set -xe
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be problematic to fail on pipes too?

Suggested change
set -xe
set -xeo pipefail

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, this options were passed from the bash command (in the first line of the file)
Could you change the command from #!/bin/bash -ex to #!/usr/bin/env bash please? (for better cross-platform compatibility)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants