Ensure 'sogo' UNIX group exists at installation

Previous logic only checked for user existence.
This commit is contained in:
Patrice Levesque committed 2016-05-30 11:40:25 -04:00
1 parent f623de931a
commit c46a5f8df7
3 files changed
+5 -2

No files matched your search

+1 -1
View File
@@ -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