mailman: fixed homedir in pre-install script
This commit is contained in:
parent
2c479d57d4
commit
a1eeeb8a0c
@ -4,12 +4,13 @@ mmuser="mailman"
|
||||
mmgroup="mailman"
|
||||
mmuserid=41
|
||||
mmgroupid=41
|
||||
mmhome="/usr/lib/mailman"
|
||||
|
||||
# make sure the user/group exists or add if not exists
|
||||
/usr/bin/getent group $mmgroup || \
|
||||
/usr/sbin/groupadd -g $mmgroupid $mmgroup
|
||||
|
||||
/usr/bin/getent passwd $mmuser || \
|
||||
/usr/sbin/useradd -s /sbin/nologin -u $mmuserid -g $mmgroupid $mmuser
|
||||
/usr/sbin/useradd -s /sbin/nologin -d $mmhome -u $mmuserid -g $mmgroupid $mmuser
|
||||
|
||||
# End of file
|
||||
|
Loading…
x
Reference in New Issue
Block a user