summaryrefslogtreecommitdiff
path: root/testing/fssos-nsvs/fssos-nsvs.install
blob: 253ae64d28f175d41fe272dc9a0a08c522031158 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
post_install() {
    if [ -z "`grep '^nsvsd::' /etc/group`" ]; then
	groupadd -g 83 nsvsd
    fi
    if [ -z "`grep '^nsvsd:' /etc/passwd`" ]; then
	useradd -u 83 -d /tmp -g nsvsd -s /bin/false nsvsd
    fi
}

post_upgrade() {
    post_install $1
}

pre_remove() {
    userdel nsvsd &> /dev/null
    groupdel nsvsd &> /dev/null
}