File debian.zeekctl-nightly.postinst of Package zeek-nightly
#!/bin/sh
/usr/bin/getent group zeek >/dev/null || /usr/sbin/groupadd -r zeek
chgrp zeek /opt/zeek-nightly/spool /opt/zeek-nightly/spool/tmp /opt/zeek-nightly/logs
chmod 2770 /opt/zeek-nightly/spool /opt/zeek-nightly/spool/tmp /opt/zeek-nightly/logs
chgrp zeek /opt/zeek-nightly/etc
chmod 2775 /opt/zeek-nightly/etc
chgrp zeek /opt/zeek-nightly/etc/zeekctl.cfg /opt/zeek-nightly/etc/networks.cfg /opt/zeek-nightly/etc/node.cfg
chmod 0664 /opt/zeek-nightly/etc/zeekctl.cfg /opt/zeek-nightly/etc/networks.cfg /opt/zeek-nightly/etc/node.cfg