aboutsummaryrefslogtreecommitdiffstats
path: root/mail/smfsav/pkg-deinstall
blob: f24af6e46af3101cfb3843b3eb8f1d9aa2bd9892 (plain) (blame)
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

#
# $FreeBSD$
#

PATH=$PATH:/bin:/usr/sbin
export PATH

if [ "$2" = "POST-DEINSTALL" ]; then

    if pw group show -g 666 2>&1 >/dev/null; then
    echo "[*] Removing group \"smfsav\""
    pw groupdel -g 666
    fi

    if pw user show -u 666 2>&1 >/dev/null; then
    echo "[*] Removing user \"smfsav\""
    pw userdel -u 666
    fi

    if [ -d /var/run/smfsav ]; then
    echo "[*] Removing directory \"/var/run/smfsav\""
        rmdir /var/run/smfsav
    fi

fi