Skip to content

Commit 5efb8ec

Browse files
committed
precreate nginx log files, fix permissions
1 parent d2e4598 commit 5efb8ec

File tree

9 files changed

+21
-0
lines changed

9 files changed

+21
-0
lines changed

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ RUN \
7171
apk add --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing \
7272
php82-pecl-mcrypt
7373

74+
# copy local files
75+
COPY root/ /
76+
7477
# ports and volumes
7578
EXPOSE 80 443
7679

Dockerfile.aarch64

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ RUN \
7171
apk add --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing \
7272
php82-pecl-mcrypt
7373

74+
# copy local files
75+
COPY root/ /
76+
7477
# ports and volumes
7578
EXPOSE 80 443
7679

readme-vars.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ app_setup_block: |
3939
4040
# changelog
4141
changelogs:
42+
- { date: "06.11.23:", desc: "Fix permissions." }
4243
- { date: "25.05.23:", desc: "Rebase to Alpine 3.18, deprecate armhf." }
4344
- { date: "16.01.23:", desc: "Remove nchan module because it keeps causing crashes." }
4445
- { date: "22.12.22:", desc: "Rebase to Alpine 3.17 with PHP 8.1, migrate to s6v3." }

root/etc/s6-overlay/s6-rc.d/init-config-end/dependencies.d/init-permissions-config

Whitespace-only changes.

root/etc/s6-overlay/s6-rc.d/init-permissions-config/dependencies.d/init-config

Whitespace-only changes.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/usr/bin/with-contenv bash
2+
# shellcheck shell=bash
3+
4+
for file in /config/log/nginx/access.log /config/log/nginx/error.log; do
5+
if [[ ! -f "${file}" ]]; then
6+
touch "${file}"
7+
fi
8+
done
9+
10+
# permissions
11+
lsiown -R abc:abc \
12+
/config
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
oneshot
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/etc/s6-overlay/s6-rc.d/init-permissions-config/run

root/etc/s6-overlay/s6-rc.d/user/contents.d/init-permissions-config

Whitespace-only changes.

0 commit comments

Comments
 (0)