PKGBUILDs/extra/fssos-nsvs/fssos-nsvs.install
2009-10-09 21:23:22 -05:00

17 lines
330 B
Text

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
}