1
0
mirror of https://github.com/coturn/coturn.git synced 2025-12-25 09:51:37 +01:00
coturn/debian/coturn.postrm
Chris Lamb 24e1de6962 Import Debian changes 4.5.1.1-1.1
coturn (4.5.1.1-1.1) unstable; urgency=medium

  * Non-maintainer upload.
  * Don't ship the (empty) /var/lib/turn/turndb SQLite database and generate it
    on-demand in the postinst instead, avoiding overwriting it on
    upgrade/reinstall. (Closes: #929269)
2020-06-25 13:54:26 +02:00

27 lines
495 B
Bash

#!/bin/sh
set -e
TURNSERVER_USER=turnserver
TURNSERVER_GROUP=turnserver
if [ "$1" = "purge" ] ; then
if getent passwd $TURNSERVER_USER >/dev/null; then
userdel $TURNSERVER_USER
fi
if getent group $TURNSERVER_GROUP >/dev/null; then
groupdel $TURNSERVER_GROUP
fi
rm -f /var/lib/turn/turndb
fi
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
#DEBHELPER#
exit 0