docker: flatten docker/files/ into docker/

Move chatmail-init.sh, chatmail-init.service, and entrypoint.sh up
from docker/files/ to docker/
This commit is contained in:
j4n
2026-02-24 19:02:30 +01:00
parent ee6573efec
commit 238884be70
5 changed files with 5 additions and 5 deletions

9
docker/entrypoint.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
set -eo pipefail
CHATMAIL_INIT_SERVICE_PATH="${CHATMAIL_INIT_SERVICE_PATH:-/lib/systemd/system/chatmail-init.service}"
env_vars="MAIL_DOMAIN CMDEPLOY_STAGES CHATMAIL_INI TLS_EXTERNAL_CERT_AND_KEY PATH"
sed -i "s|<envs_list>|$env_vars|g" "$CHATMAIL_INIT_SERVICE_PATH"
exec /lib/systemd/systemd "$@"