containers/spamassassin/cron
Stefan Harmuth 8448692fe9
All checks were successful
Build OCI Containers / Build Containers (push) Successful in 7m12s
new: spamassassin
2024-03-20 15:41:51 +01:00

10 lines
299 B
Bash

#!/usr/bin/env bash
# drop priviledges
if [ "$(id -u)" -eq 0 ]; then
exec sudo -H -u debian-spamd $0 "$@"
fi
/usr/bin/sa-update --gpghomedir=/spamd/gpg --updatedir=/spamd/etc && \
/usr/bin/sa-compile --configpath=/spamd/etc --updatedir=/spamd/compiled && \
kill -HUP `cat /spamd/run/spamd.pid`