0393afba2a
produces graphs of clean emails, spam emails and infected emails broken down by virus, from amavis log entries. RRD files are created and updated by a perl script run from cron. Graphs are generated by a php script and viewed with a web browser. PR: ports/68934 Submitted by: Mantas Kaulakys <stone@tainet.lt>
16 lines
365 B
Bash
16 lines
365 B
Bash
#!/bin/sh
|
|
|
|
USER=%%AMAVISUSER%%
|
|
GROUP=%%AMAVISGROUP%%
|
|
|
|
if [ "$2" = "POST-DEINSTALL" ]; then
|
|
|
|
if /usr/sbin/pw group show "${GROUP}" 2>&1 >/dev/null; then
|
|
echo "You should manually remove the \"${GROUP}\" group."
|
|
fi
|
|
|
|
if /usr/sbin/pw user show "${USER}" 2>&1 >/dev/null; then
|
|
echo "You should manually remove the \"${USER}\" user."
|
|
fi
|
|
|
|
fi
|