Add migration scripts and other fixes

This commit is contained in:
2026-09-14 20:36:10 +03:00
parent 4cb65a6f52
commit 1cd38af60e
12 changed files with 604 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
#!/usr/bin/env bash
# Creates the host data directories for stalwart/roundcube and sets ownership
# expected by each container (stalwart runs as uid/gid 2000).
set -euo pipefail
DATA_ROOT="${DATA_ROOT:-/opt/eternitymail}"
mkdir -p \
"$DATA_ROOT/stalwart/etc" \
"$DATA_ROOT/stalwart/data" \
"$DATA_ROOT/stalwart/certs" \
"$DATA_ROOT/roundcube-db" \
"$DATA_ROOT/roundcube-config"
chown -R 2000:2000 "$DATA_ROOT/stalwart"
echo "Data directories ready under $DATA_ROOT"