Skip to content

Commit 585880b

Browse files
committed
Fix arbitrary user support by setting GHOST_CONTENT to 1777
1 parent 3332df1 commit 585880b

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

2/alpine/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ RUN set -eux; \
4141
mv "$GHOST_CONTENT" "$GHOST_INSTALL/content.orig"; \
4242
mkdir -p "$GHOST_CONTENT"; \
4343
chown node:node "$GHOST_CONTENT"; \
44+
chmod 1777 "$GHOST_CONTENT"; \
4445
\
4546
# force install "sqlite3" manually since it's an optional dependency of "ghost"
4647
# (which means that if it fails to install, like on ARM/ppc64le/s390x, the failure will be silently ignored and thus turn into a runtime error instead)

2/debian/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ RUN set -eux; \
6565
mv "$GHOST_CONTENT" "$GHOST_INSTALL/content.orig"; \
6666
mkdir -p "$GHOST_CONTENT"; \
6767
chown node:node "$GHOST_CONTENT"; \
68+
chmod 1777 "$GHOST_CONTENT"; \
6869
\
6970
# force install "sqlite3" manually since it's an optional dependency of "ghost"
7071
# (which means that if it fails to install, like on ARM/ppc64le/s390x, the failure will be silently ignored and thus turn into a runtime error instead)

3/alpine/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ RUN set -eux; \
4141
mv "$GHOST_CONTENT" "$GHOST_INSTALL/content.orig"; \
4242
mkdir -p "$GHOST_CONTENT"; \
4343
chown node:node "$GHOST_CONTENT"; \
44+
chmod 1777 "$GHOST_CONTENT"; \
4445
\
4546
# force install "sqlite3" manually since it's an optional dependency of "ghost"
4647
# (which means that if it fails to install, like on ARM/ppc64le/s390x, the failure will be silently ignored and thus turn into a runtime error instead)

3/debian/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ RUN set -eux; \
6565
mv "$GHOST_CONTENT" "$GHOST_INSTALL/content.orig"; \
6666
mkdir -p "$GHOST_CONTENT"; \
6767
chown node:node "$GHOST_CONTENT"; \
68+
chmod 1777 "$GHOST_CONTENT"; \
6869
\
6970
# force install "sqlite3" manually since it's an optional dependency of "ghost"
7071
# (which means that if it fails to install, like on ARM/ppc64le/s390x, the failure will be silently ignored and thus turn into a runtime error instead)

0 commit comments

Comments
 (0)