⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.72
Server IP:
41.128.143.86
Server:
Linux host.raqmix.cloud 6.8.0-1025-azure #30~22.04.1-Ubuntu SMP Wed Mar 12 15:28:20 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.3.23
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
proc
/
self
/
root
/
var
/
lib
/
dpkg
/
info
/
View File Name :
spamassassin.postinst
#!/bin/sh set -e if [ "$1" = "triggered" ] && [ "$2" = "perl-major-upgrade" ]; then echo "OK, restarting spamd due to trigger" invoke-rc.d spamassassin restart fi if [ "$1" = "configure" ]; then # If a new install, or an upgrade from 3.3.2-2 or earlier... if ! getent passwd debian-spamd > /dev/null ; then adduser --system --group --disabled-login --disabled-password \ --home /var/lib/spamassassin --no-create-home \ debian-spamd fi OWNER=$(stat -c '%U' /var/lib/spamassassin) GROUP=$(stat -c '%G' /var/lib/spamassassin) # Lets debian-spamd claim ownership of spamassassin updates on upgrades, # unless the user has overridden. if ! dpkg-statoverride --list /var/lib/spamassassin/* >/dev/null && \ [ "$OWNER:$GROUP" != "debian-spamd:debian-spamd" ]; then chown debian-spamd:debian-spamd /var/lib/spamassassin OWNER=debian-spamd GROUP=debian-spamd fi test -d /var/lib/spamassassin/sa-update-keys || \ install -d -o $OWNER -g $GROUP -m 700 /var/lib/spamassassin/sa-update-keys # If gnupg is not available when spamassassin is installed, but # is subsequently made available, you'll need to execute # `dpkg-reconfigure spamassassin` in order to enable sa-update # functionality. if command -v gpg > /dev/null; then env -i LANG="$LANG" PATH="$PATH" http_proxy="$http_proxy" \ start-stop-daemon --chuid $OWNER:$GROUP --start \ --exec /usr/bin/sa-update -- \ --gpghomedir /var/lib/spamassassin/sa-update-keys \ --import /usr/share/spamassassin/GPG.KEY fi fi # Automatically added by dh_installsystemd/13.6ubuntu1 if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then if deb-systemd-helper debian-installed 'spamassassin.service'; then # This will only remove masks created by d-s-h on package removal. deb-systemd-helper unmask 'spamassassin.service' >/dev/null || true if deb-systemd-helper --quiet was-enabled 'spamassassin.service'; then # Create new symlinks, if any. deb-systemd-helper enable 'spamassassin.service' >/dev/null || true fi fi # Update the statefile to add new symlinks (if any), which need to be cleaned # up on purge. Also remove old symlinks. deb-systemd-helper update-state 'spamassassin.service' >/dev/null || true fi # End automatically added section # Automatically added by dh_installsystemd/13.6ubuntu1 if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then if [ -d /run/systemd/system ]; then systemctl --system daemon-reload >/dev/null || true if [ -n "$2" ]; then _dh_action=restart else _dh_action=start fi deb-systemd-invoke $_dh_action 'spamassassin.service' >/dev/null || true fi fi # End automatically added section # Automatically added by dh_installinit/13.6ubuntu1 if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then if [ -x "/etc/init.d/spamassassin" ]; then update-rc.d spamassassin defaults-disabled >/dev/null || exit 1 fi fi # End automatically added section # Automatically added by dh_installsystemd/13.6ubuntu1 if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then # This will only remove masks created by d-s-h on package removal. deb-systemd-helper unmask 'spamassassin.service' >/dev/null || true # was-enabled defaults to true, so new installations run enable. if deb-systemd-helper --quiet was-enabled 'spamassassin.service'; then # Enables the unit on first installation, creates new # symlinks on upgrades if the unit file has changed. deb-systemd-helper enable 'spamassassin.service' >/dev/null || true else # Update the statefile to add new symlinks (if any), which need to be # cleaned up on purge. Also remove old symlinks. deb-systemd-helper update-state 'spamassassin.service' >/dev/null || true fi fi # End automatically added section if [ "$1" = "configure" ] && [ -n "$2" ]; then if deb-systemd-helper was-enabled spamassassin.service > /dev/null 2>&1; then invoke-rc.d spamassassin restart fi fi