mirror of
https://salsa.debian.org/pkg-voip-team/coturn.git
synced 2025-11-27 19:39:27 +01:00
coturn (4.5.2-3) unstable; urgency=medium
.
[ Ferenc Wágner ]
* [50ab417] Don't rely on the documentation being present for creating the DB.
Dpkg may be configured to omit installing files under /usr/share/doc.
Since the database schema is shipped in a private directory as well,
switch to using that instance instead. (Closes: #985054)
* [6f94ecb] Let the purge go through under unforeseen circumstances
* [d8f0a0a] Let debhelper do its business before the final cleanup
* [4033c69] Make the SQLite database writable by the turnserver user and
group.
File permissions alone aren't enough, the containing directory needs to
be writable as well.
* [81731d8] Ship the empty /var/lib/turndb directory for better
discoverability
* [34a2b34] Split up our autopkgtest into several tests
.
[ Mészáros Mihály ]
* [1666988] Add forwarded not-needed to
Fix-undefinded-OPENSSL_VERSION_1_1_1.patch
36 lines
971 B
Bash
36 lines
971 B
Bash
#!/bin/sh
|
|
|
|
# dh_installdeb will replace this with shell code automatically
|
|
# generated by other debhelper scripts.
|
|
|
|
#DEBHELPER#
|
|
|
|
set -e
|
|
|
|
TURNSERVER_USER=turnserver
|
|
TURNSERVER_GROUP=turnserver
|
|
|
|
if [ "$1" = "purge" ] ; then
|
|
TURNSERVER_CONFIG=/etc/turnserver.conf
|
|
if dpkg-statoverride --list "$TURNSERVER_CONFIG" >/dev/null 2>&1; then
|
|
dpkg-statoverride --remove "$TURNSERVER_CONFIG"
|
|
fi
|
|
|
|
TURNDB_DIR=/var/lib/turn
|
|
if dpkg-statoverride --list "$TURNDB_DIR" >/dev/null 2>&1; then
|
|
dpkg-statoverride --remove "$TURNDB_DIR"
|
|
fi
|
|
|
|
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 "$TURNDB_DIR"/turndb
|
|
rmdir "$TURNDB_DIR" || true
|
|
# we only put turndb in there, but don't fail in any case
|
|
fi
|
|
|
|
exit 0
|