Commit c8c5291e authored by ale's avatar ale
Browse files

Add cron job to set forced parameters

parent 8d71c416
......@@ -2,6 +2,7 @@ FROM registry.git.autistici.org/ai3/docker-apache2-base:master
COPY conf /tmp/conf
COPY build.sh /tmp/build.sh
COPY apply-forced-params /usr/local/bin/apply-forced-params
RUN /tmp/build.sh && rm -fr /tmp/build.sh /tmp/conf
ENTRYPOINT ["/usr/local/bin/chaperone"]
#!/bin/sh
test -e /etc/mailman/forced_params || exit 0
/usr/sbin/list_lists \
| xargs -n 1 /usr/sbin/config_list -i /etc/mailman/forced_params
exit 0
......@@ -15,6 +15,7 @@ PACKAGES="
python-pip
python-flask
ai-sso-python
findutils
"
# Apache modules to enable.
......@@ -75,6 +76,8 @@ chmod 1777 /var/run/mailman
# Create empty dir for webroot.
mkdir /var/empty
chmod 755 /usr/local/bin/apply-forced-params
# Install python-mailman-api.
(cd /tmp ; pip install
'git+https://git.autistici.org/ai3/python-mailman.git#egg=mailman_api')
......
forced-params-cron.service: {
type: cron,
interval: "50 3 * * 7",
command: "/usr/local/bin/apply-forced-params",
}
Supports Markdown
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