All checks were successful
Build OCI Containers / Build Containers (push) Successful in 7m12s
10 lines
299 B
Bash
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` |