mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-08 05:17:15 +00:00
Ensure 'sogo' UNIX group exists at installation
Previous logic only checked for user existence.
This commit is contained in:
1 parent
f623de931a
commit
c46a5f8df7
3 files changed
+5
-2
No files matched your search
@@ -13,8 +13,8 @@ set -e
|
||||
|
||||
if [ "$1" == "install" ] || [ "$1" == "upgrade" ]; then
|
||||
|
||||
getent group sogo >& /dev/null || groupadd -f -r sogo
|
||||
if ! id sogo 1> /dev/null 2>&1; then
|
||||
groupadd -f -r sogo
|
||||
useradd -d /var/lib/sogo -g sogo -c "SOGo daemon" -s /usr/sbin/nologin -r sogo
|
||||
fi
|
||||
|
||||
|
||||
Reference in new issue
Block a user