summaryrefslogtreecommitdiff
path: root/testing/fssos-nsvs/fssos-nsvs.install
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-09-27 00:42:08 -0700
committerroot <root@rshg054.dnsready.net>2012-09-27 00:42:08 -0700
commitbd8faf795abf6d91abdc52bc968829cc2efae4bb (patch)
treec073a5288d3917e9aa98d3762479ad083c5ceafe /testing/fssos-nsvs/fssos-nsvs.install
parent483f8b3ac46ac2d40e8cc2f9c25365741bebc791 (diff)
Thu Sep 27 00:42:07 PDT 2012
Diffstat (limited to 'testing/fssos-nsvs/fssos-nsvs.install')
-rw-r--r--testing/fssos-nsvs/fssos-nsvs.install17
1 files changed, 17 insertions, 0 deletions
diff --git a/testing/fssos-nsvs/fssos-nsvs.install b/testing/fssos-nsvs/fssos-nsvs.install
new file mode 100644
index 000000000..253ae64d2
--- /dev/null
+++ b/testing/fssos-nsvs/fssos-nsvs.install
@@ -0,0 +1,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
+}