| Server IP : 85.214.239.14 / Your IP : 216.73.216.108 Web Server : Apache/2.4.65 (Debian) System : Linux h2886529.stratoserver.net 4.9.0 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64 User : www-data ( 33) PHP Version : 8.2.29 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /proc/3/cwd/proc/3/task/3/cwd/proc/3/task/3/cwd/var/lib/dpkg/info/ |
Upload File : |
#!/bin/sh
set -e
umask 022
output_dir="/var/lib/spamassassin/compiled"
sa_compile() {
OWNER=$(stat -c '%U' /var/lib/spamassassin)
GROUP=$(stat -c '%G' /var/lib/spamassassin)
if [ -x /usr/bin/re2c -a -x /usr/bin/sa-compile ]; then
echo "Running sa-compile (may take a long time)"
if [ -d "$output_dir" ]; then
rm -rf "$output_dir"
fi
env -i LANG="$LANG" PATH="$PATH" http_proxy="$http_proxy" \
OWNER="$OWNER" GROUP="$GROUP" \
runuser -u "$OWNER" --group "$GROUP" -- \
/usr/bin/sa-compile --quiet
# Fixup perms -- group and other should be able to
# read and execute, but never write. Works around
# sa-compile's failure to obey umask.
if [ -d "$output_dir" ]; then
runuser -u $OWNER -- \
chmod -R go-w,go+rX "$output_dir"
fi
if command -v invoke-rc.d >/dev/null 2>&1; then
invoke-rc.d --quiet spamd status > /dev/null && \
invoke-rc.d spamd reload > /dev/null 2>&1 || true
else
/etc/init.d/spamd reload > /dev/null 2>&1 || true
fi
fi
}
if [ "$1" = "configure" ]; then
sa_compile
fi
if [ "$1" = "triggered" ] && [ "$2" = "perl-major-upgrade" ]; then
sa_compile
fi
# Local variables:
# mode: shell-script
# tab-width: 4
# indent-tabs-mode: nil
# end: