| Server IP : 172.67.206.42 / Your IP : 104.23.197.132 Web Server : Apache System : Linux server.localhost.com 6.8.0-85-generic #85-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 18 15:26:59 UTC 2025 x86_64 User : pahana ( 1029) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/lib/dpkg/info/ |
Upload File : |
#!/bin/sh
# postrm script for cyrus-sasl2
# Copyright (c) 2007 by Fabian Fagerholm <[email protected]>
# Parts based on cyrus-imapd-2.2 by Henrique de Moraes Holshuch and others.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# Note that Cyrus SASL itself is published under a different license.
set -e
FALLBACK_RUN_DIR=/var/run/saslauthd
SASLDB_FILE=/etc/sasldb2
# Debconf hook. We don't rely on debconf being present at this time.
if [ -e /usr/share/debconf/confmodule ];then
# Source debconf library.
. /usr/share/debconf/confmodule
DEBCONFEXISTS="true"
export DEBCONFEXISTS
else
DEBCONFEXISTS="false"
export DEBCONFEXISTS
fi
case "$1" in
remove)
;;
purge)
# Remove the default statoverride, if it exists
if dpkg-statoverride --list $FALLBACK_RUN_DIR >/dev/null 2>&1; then
dpkg-statoverride --remove $FALLBACK_RUN_DIR || true
fi
# Purge /etc/sasldb2? If Debconf is not installed, it will
# not be touched.
if [ "$DEBCONFEXISTS" = "true" ]; then
db_title "Cyrus SASL" || true
db_fset cyrus-sasl2/purge-sasldb2 seen false || true
db_input high cyrus-sasl2/purge-sasldb2 || true
db_go || true
db_get cyrus-sasl2/purge-sasldb2
if [ "$RET" = "true" ]; then
rm -f $SASLDB_FILE
fi
fi
if [ ! -e $SASLDB_FILE ]; then
rm -f /usr/lib/sasl2/berkeley_db.active
rmdir --ignore-fail-on-non-empty /usr/lib/sasl2 || true
fi
;;
upgrade|failed-upgrade|disappear)
;;
abort-upgrade)
;;
abort-install)
;;
*)
echo "postrm called with unknown argument $1" >&2
exit 0
esac
# dh_installdeb will replace this with automatically generated code.
# Automatically added by dh_installinit/13.14.1ubuntu5
if [ "$1" = "remove" ] && [ -x "/etc/init.d/saslauthd" ] ; then
chmod -x "/etc/init.d/saslauthd" >/dev/null || true
fi
if [ -z "${DPKG_ROOT:-}" ] && [ "$1" = "purge" ] ; then
update-rc.d saslauthd remove >/dev/null
fi
# End automatically added section
# Automatically added by dh_installsystemd/13.14.1ubuntu5
if [ "$1" = remove ] && [ -d /run/systemd/system ] ; then
systemctl --system daemon-reload >/dev/null || true
fi
# End automatically added section
# Automatically added by dh_installsystemd/13.14.1ubuntu5
if [ "$1" = "purge" ]; then
if [ -x "/usr/bin/deb-systemd-helper" ]; then
deb-systemd-helper purge 'saslauthd.service' >/dev/null || true
fi
fi
# End automatically added section
# Automatically added by dh_installdebconf/13.14.1ubuntu5
if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
. /usr/share/debconf/confmodule
db_purge
fi
# End automatically added section
exit 0