diff options
Diffstat (limited to 'main/sems/sems.pre-install')
-rw-r--r-- | main/sems/sems.pre-install | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/main/sems/sems.pre-install b/main/sems/sems.pre-install index 3e82578a3e..f126694087 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 |