File: homer-api.postrm

package info (click to toggle)
homer-api 5.0.6+dfsg2-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,604 kB
  • ctags: 2,439
  • sloc: php: 8,259; sql: 1,212; perl: 984; sh: 318; makefile: 69
file content (27 lines) | stat: -rw-r--r-- 507 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
#!/bin/sh

set -e

if [ "$1" = "purge" ] ; then

    if getent passwd homer >/dev/null; then
        userdel homer
    fi
    if getent group homer >/dev/null; then
        groupdel homer
    fi

    if getent passwd kamailio-homer >/dev/null; then
        userdel kamailio-homer
    fi
    if getent group kamailio-homer >/dev/null; then
        groupdel kamailio-homer
    fi
fi

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

#DEBHELPER#

exit 0