summaryrefslogtreecommitdiff
path: root/testing/fssos-nsvs/fssos-nsvs.install
diff options
context:
space:
mode:
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
+}