Skip to content

scripts: force cd / for all PostgreSQL scripts#1608

Merged
BareosBot merged 4 commits intobareos:bareos-23from
bruno-at-bareos:dev/bruno/bareos-23/backport-fix-postgresql-scripts-root-dir
Dec 8, 2023
Merged

scripts: force cd / for all PostgreSQL scripts#1608
BareosBot merged 4 commits intobareos:bareos-23from
bruno-at-bareos:dev/bruno/bareos-23/backport-fix-postgresql-scripts-root-dir

Conversation

@bruno-at-bareos
Copy link
Contributor

@bruno-at-bareos bruno-at-bareos commented Nov 28, 2023

Backport of PR #1607 to bareos-23

Please check

  • Short description and the purpose of this PR is present above this paragraph
  • Your name is present in the AUTHORS file (optional)

If you have any questions or problems, please give a comment in the PR.

Helpful documentation and best practices

Checklist for the reviewer of the PR (will be processed by the Bareos team)

Make sure you check/merge the PR using devtools/pr-tool to have some simple automated checks run and a proper changelog record added.

General
  • Is the PR title usable as CHANGELOG entry?
  • Purpose of the PR is understood
  • Commit descriptions are understandable and well formatted
  • Check backport line
  • Required backport PRs have been created
Source code quality
  • Source code changes are understandable
  • Variable and function names are meaningful
  • Code comments are correct (logically and spelling)
  • Required documentation changes are present and part of the PR

@bruno-at-bareos bruno-at-bareos changed the base branch from master to bareos-23 November 28, 2023 14:00
@bruno-at-bareos bruno-at-bareos changed the title backport fix postgresql scripts root dir scripts: force cd / for all PostgreSQL scripts Nov 30, 2023
bruno-at-bareos and others added 4 commits December 8, 2023 14:16
add a forced cd / in scripts headers, with an explicit comment.

PostgreSQL binaries tried to chdir() at the end.
we force them to start somewhere postgres user will be able
to return without permissions errors.

Signed-off-by: Bruno Friedmann <bruno.friedmann@bareos.com>
(cherry picked from commit 6ae0fa0)
(cherry picked from commit 630c3de)
(cherry picked from commit 69da1d1)
@BareosBot BareosBot force-pushed the dev/bruno/bareos-23/backport-fix-postgresql-scripts-root-dir branch from e718b95 to dd80039 Compare December 8, 2023 14:16
@BareosBot BareosBot merged commit 126f8c6 into bareos:bareos-23 Dec 8, 2023
@bruno-at-bareos bruno-at-bareos deleted the dev/bruno/bareos-23/backport-fix-postgresql-scripts-root-dir branch January 15, 2024 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants