Merge branch 'main' into dependabot/docker/core/alpine-3.20

This commit is contained in:
Abhilash Raj
2024-09-20 12:25:09 +05:30
committed by GitHub
6 changed files with 17 additions and 6 deletions

View File

@@ -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