mirror of
https://github.com/coturn/coturn.git
synced 2025-12-25 09:51:37 +01:00
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)
27 lines
495 B
Bash
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
|
|
|