Files
upstream-jicofo/debian/postrm
upstream-mirror fcbc274d01
Some checks failed
Java CI with Maven / Java 21 (push) Failing after 4m41s
Java CI with Maven / Java 17 (push) Failing after 4m42s
snapshot of https://github.com/jitsi/jicofo.git @ 9ab59aa3d348e282da89da2c9f11ecbecd3f7b79 (2026-09-15)
2026-09-15 16:13:53 +05:00

58 lines
1.1 KiB
Bash

#!/bin/bash
# postrm script for jicofo
set -e
# Load debconf
. /usr/share/debconf/confmodule
case "$1" in
purge)
# Clear the debconf variable
db_purge
# clear user and group
# ensure nothing is running as jicofo user
if ps -u jicofo h; then
`ps -u jicofo -o pid h | xargs kill`
fi
# and then remove the user
if getent passwd jicofo > /dev/null ; then
deluser jicofo
fi
# clear logs
if [ -f "/var/log/jitsi/jicofo.log" ]; then
rm -f "/var/log/jitsi/jicofo.log"
fi
rm -rf /usr/share/jicofo/
rm -f /etc/jitsi/jicofo/config
rm -f /etc/jitsi/jicofo/sip-communicator.properties
rm -f /etc/jitsi/jicofo/logging.properties
rm -f /etc/jitsi/jicofo/jicofo.conf
;;
remove)
;;
upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
;;
*)
echo "postrm called with unknown argument \`$1'" >&2
exit 1
;;
esac
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
#DEBHELPER#
db_stop
exit 0