PKGBUILDs/extra/fssos-nsvs/fssos-nsvs.install

18 lines
330 B
Text
Raw Normal View History

2009-10-10 02:23:22 +00:00
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
}