5c2a97
#!/usr/bin/python2
5c2a97
5c2a97
# This script is needed, when SELinux is enabled:
5c2a97
# mailman_mail_t context cannot write to the directory
5c2a97
# @mmdir@/Mailman so when you change mm_cfg.py, 
5c2a97
# mailman cannot create the .pyc
5c2a97
#
5c2a97
# This script is called in the init script, which is run in unconfined_t
5c2a97
# so the .pyc is created and the AVC denial is avoided. (bz#481446)
5c2a97
5c2a97
import py_compile
5c2a97
5c2a97
py_compile.compile("@mmdir@/Mailman/mm_cfg.py")