Commit 5786a70d authored by ale's avatar ale
Browse files

Add /config support

parent 236c0407
Pipeline #2071 passed with stages
in 1 minute and 59 seconds
......@@ -9,4 +9,5 @@ The /data volume should be mounted externally (with the appropriate
permissions) and it will be used to store lists, archives and all
the other Mailman runtime data.
The /config volume should also be mounted externally, and it should
contain the *mm_cfg.py* and the rest of the configuration files.
......@@ -73,6 +73,14 @@ for d in $mailman_data_subdirs ; do
ln -sf /data/$d /var/lib/mailman/$d
done
# Since Mailman installs stuff in /etc/mailman too, we do the same trick
# as above but with the /config mountpoint.
mkdir -p /config
rm -f /etc/mailman/mm_cfg.py
for f in mm_cfg.py mailman_api.conf forced_params ; do
ln -s /config/$f /etc/mailman/$f
done
# Create directory for PID file.
mkdir /var/run/mailman
chmod 1777 /var/run/mailman
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment