diff --git a/core/docker-entrypoint.sh b/core/docker-entrypoint.sh index 3e544bb..519ad2f 100755 --- a/core/docker-entrypoint.sh +++ b/core/docker-entrypoint.sh @@ -247,7 +247,17 @@ echo "HYPERKITTY_API_KEY not defined, skipping HyperKitty setup..." fi # Now chown the places where mailman wants to write stuff. -chown -R mailman /opt/mailman +VAR_DIR="/opt/mailman/var" +# Check if the directory exists +if [ ! -d "$VAR_DIR" ]; then + # Directory does not exist, so create it + mkdir -p "$VAR_DIR" + echo "Directory $VAR_DIR created." +else + echo "Directory $VAR_DIR already exists." +fi + +chown -R mailman $VAR_DIR # Generate the LMTP files for postfix if needed. su-exec mailman mailman aliases diff --git a/postorius/Dockerfile b/postorius/Dockerfile index 8c99871..b6b7b30 100644 --- a/postorius/Dockerfile +++ b/postorius/Dockerfile @@ -1,5 +1,5 @@ # syntax = docker/dockerfile:1.3 -FROM alpine:3.20.1 +FROM alpine:3.20.3 # Install packages and dependencies for postorius and hyperkitty Add user for # executing apps, change ownership for uwsgi+django files and set execution diff --git a/postorius/Dockerfile.dev b/postorius/Dockerfile.dev index 85e75bb..4807e94 100644 --- a/postorius/Dockerfile.dev +++ b/postorius/Dockerfile.dev @@ -1,5 +1,5 @@ # syntax = docker/dockerfile:1.3 -FROM alpine:3.20.1 +FROM alpine:3.20.3 ARG POSTORIUS_REF ARG DJ_MM3_REF diff --git a/web/Dockerfile b/web/Dockerfile index 81d5f3b..4d3d66f 100644 --- a/web/Dockerfile +++ b/web/Dockerfile @@ -1,5 +1,5 @@ # syntax = docker/dockerfile:1.3 -FROM alpine:3.20.1 +FROM alpine:3.20.3 # Add requirements file. COPY requirements.txt /tmp/ @@ -28,6 +28,7 @@ RUN --mount=type=cache,target=/root/.cache \ diskcache \ django-utils-six \ tzdata \ + pytz \ 'django-allauth[socialaccount,openid]' \ && apk del .build-deps \ && addgroup -S mailman \ diff --git a/web/Dockerfile.dev b/web/Dockerfile.dev index 73f8a76..bb7f15d 100644 --- a/web/Dockerfile.dev +++ b/web/Dockerfile.dev @@ -1,5 +1,5 @@ # syntax = docker/dockerfile:1.3 -FROM alpine:3.20.1 +FROM alpine:3.20.3 ARG POSTORIUS_REF ARG HYPERKITTY_REF diff --git a/web/requirements.txt b/web/requirements.txt index 5bf03cc..7400b73 100644 --- a/web/requirements.txt +++ b/web/requirements.txt @@ -1,4 +1,4 @@ mailmanclient==3.3.5 postorius==1.3.10 -hyperkitty==1.3.9 +hyperkitty==1.3.11 django-mailman3==1.3.15 \ No newline at end of file