mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-02-01 02:19:27 +08:00
fix postgresql container
Signed-off-by: szaimen <szaimen@e.mail.de>
This commit is contained in:
parent
8af877f048
commit
1a6253ee4c
1 changed files with 6 additions and 0 deletions
|
@ -10,6 +10,12 @@ RUN set -ex; \
|
|||
addgroup -g 999 -S postgres; \
|
||||
adduser -u 999 -S -D -G postgres -H -h /var/lib/postgresql -s /bin/sh postgres
|
||||
|
||||
# Fix default permissions
|
||||
RUN set -ex; \
|
||||
chown -R postgres:postgres /var/lib/postgresql; \
|
||||
chown -R postgres:postgres /var/run/postgresql; \
|
||||
chown -R postgres:postgres "$PGDATA"
|
||||
|
||||
COPY start.sh /usr/bin/
|
||||
RUN chmod +x /usr/bin/start.sh
|
||||
|
||||
|
|
Loading…
Reference in a new issue