Skip to content

Commit 78ec4f3

Browse files
committed
Recursively chown
1 parent df75d40 commit 78ec4f3

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

.dockerignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
# Don't send some content to the Docker host when building
2+
img
3+
travis
24
.git
35
.travis.yml

travis/Dockerfile.in

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@ ENV LANG=C.UTF-8 PGDATA=/pg/data
1515
RUN mkdir -p ${PGDATA} && \
1616
mkdir -p /pg/testdir
1717

18-
# Grant privileges
19-
RUN chown postgres:postgres ${PGDATA} && \
20-
chown postgres:postgres /pg/testdir && \
21-
chmod a+rwx /usr/local/lib/postgresql && \
22-
chmod a+rwx /usr/local/share/postgresql/extension
23-
2418
COPY run_tests.sh /run.sh
2519
RUN chmod 755 /run.sh
2620

2721
COPY . /pg/testdir
2822
WORKDIR /pg/testdir
2923

24+
# Grant privileges
25+
RUN chown postgres:postgres ${PGDATA} && \
26+
chown -R postgres:postgres /pg/testdir && \
27+
chmod a+rwx /usr/local/lib/postgresql && \
28+
chmod a+rwx /usr/local/share/postgresql/extension
29+
3030
USER postgres
3131
ENTRYPOINT LEVEL=${LEVEL} /run.sh

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy