File: resiprocate-turn-server.postrm

package info (click to toggle)
resiprocate 1%3A1.9.7-5
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 36,456 kB
  • ctags: 27,123
  • sloc: cpp: 195,346; xml: 12,515; sh: 11,986; ansic: 6,807; makefile: 2,182; php: 1,150; python: 300; objc: 91; sql: 85; perl: 21; csh: 5
file content (31 lines) | stat: -rw-r--r-- 706 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/sh

set -e

if [ "$1" = "purge" ] ; then
        if getent passwd return >/dev/null; then
                userdel return
        fi
        if getent group return >/dev/null; then
                groupdel return
        fi

        if [ -d /var/log/reTurnServer ];
        then
                rm -rf /var/log/reTurnServer
        fi
fi

dpkg-maintscript-helper mv_conffile \
  /etc/reTurnServer.config /etc/reTurn/reTurnServer.config 1.9.0~beta10-1 -- "$@"

dpkg-maintscript-helper mv_conffile \
  /etc/reTurnServer-users.txt /etc/reTurn/users.txt 1.9.0~beta10-1 -- "$@"

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

#DEBHELPER#

exit 0