Add migration scripts and other fixes
This commit is contained in:
@@ -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"
|
||||
Reference in New Issue
Block a user