summaryrefslogtreecommitdiffstats
path: root/main/sems/sems.pre-install
diff options
context:
space:
mode:
Diffstat (limited to 'main/sems/sems.pre-install')
-rw-r--r--main/sems/sems.pre-install7
1 files changed, 6 insertions, 1 deletions
diff --git a/main/sems/sems.pre-install b/main/sems/sems.pre-install
index 3e82578a3..f12669408 100644
--- a/main/sems/sems.pre-install
+++ b/main/sems/sems.pre-install
@@ -1,5 +1,10 @@
#!/bin/sh
-adduser -H -h /var/empty -s /bin/false -D sems 2>/dev/null
+if ! getent group sems >/dev/null; then
+ addgroup -S sems
+fi
+if ! getent passwd sems >/dev/null; then
+ adduser -S -H -h /var/empty -s /bin/false -D -G sems sems 2>/dev/null
+fi
exit 0