Run mailman inside the container as a non-root process. (#31)

* Run as mailman user.

* Run mailman core process as a less-privileged mailman user.

* Add a `docker ps` to travis to know if any container died.

* Spit out more debug information in CI.

* Install su-exec properly.
This commit is contained in:
Abhilash Raj
2017-05-24 15:26:07 -07:00
committed by GitHub
parent 72b4abe894
commit 8507eaeed2
3 changed files with 10 additions and 2 deletions

View File

@@ -122,4 +122,7 @@ base_url: $HYPERKITTY_URL
api_key: $HYPERKITTY_API_KEY
EOF
exec "$@"
# Now chown the places where mailman wants to write stuff.
chown -R mailman /opt/mailman
exec su-exec mailman "$@"