Skip to content

Commit

Permalink
percona-pgbackrest rpm creats postgres user
Browse files Browse the repository at this point in the history
  • Loading branch information
hors committed Sep 14, 2024
1 parent eb4d1b4 commit 471c1a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
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

0 comments on commit 471c1a3

Please sign in to comment.