mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-11-10 03:07:11 +00:00
don't use -M when creating the sogo user on debian
-M was not available in lenny. It is not actually needed since useradd won't create the homedir when adding a system user (-r)
This commit is contained in:
1 parent
1d1ed9a031
commit
82253e91d2
2 files changed
+2
-2
No files matched your search
@@ -15,7 +15,7 @@ if [ "$1" == "install" ] || [ "$1" == "upgrade" ]; then
|
||||
|
||||
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 -M -r sogo
|
||||
useradd -d /var/lib/sogo -g sogo -c "SOGo daemon" -s /usr/sbin/nologin -r sogo
|
||||
fi
|
||||
|
||||
# create mandatory dirs and enforce owner+mode
|
||||
|
||||
@@ -15,7 +15,7 @@ if [ "$1" == "install" ] || [ "$1" == "upgrade" ]; then
|
||||
|
||||
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 -M -r sogo
|
||||
useradd -d /var/lib/sogo -g sogo -c "SOGo daemon" -s /usr/sbin/nologin -r sogo
|
||||
fi
|
||||
|
||||
# create mandatory dirs and enforce owner+mode
|
||||
|
||||
Reference in new issue
Block a user