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

K8SPG-604 percona-pgbackrest rpm creats postgres user #1032

Merged
merged 1 commit into from
Sep 15, 2024
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
9 changes: 1 addition & 8 deletions postgresql-containers/build/pgbackrest-repo/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -111,15 +111,8 @@ COPY --from=go_builder /licenses /licenses
COPY bin/common /opt/crunchy/bin
COPY bin/pgbackrest-common /opt/crunchy/bin

# only PG16 is affected PG-794
RUN if [[ "${PG_MAJOR//.}" -le '15' ]]; then \
groupadd postgres -g 26; \
useradd postgres -u 26 -g 26; \
else \
usermod -d /home/postgres postgres; \
fi

RUN set -ex; \
usermod -d /home/postgres postgres; \
groupadd pgbackrest -g 2000; \
useradd pgbackrest -u 2000 -g 2000

Expand Down
9 changes: 1 addition & 8 deletions postgresql-containers/build/pgbackrest/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -102,15 +102,8 @@ RUN set -ex; \
percona-pgbackrest; \
microdnf -y clean all

# only PG16 is affected PG-794
RUN if [[ "${PG_MAJOR//.}" -le '15' ]]; then \
groupadd postgres -g 26; \
useradd postgres -u 26 -g 26; \
else \
usermod -d /home/postgres postgres; \
fi

RUN set -ex; \
usermod -d /home/postgres postgres; \
mkdir -p /opt/crunchy/bin /opt/crunchy/conf /pgdata /backrestrepo \
/var/log/pgbackrest

Expand Down
Loading