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)
pull/12/head
Jean Raby 2013-05-24 15:00:05 -04:00
parent 1d1ed9a031
commit 82253e91d2
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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