dovecot uig and gid are reserved, use those ids

This commit is contained in:
Michal Hlavinka 2010-05-20 13:13:07 +00:00
parent 549f54abe5
commit 55784cfba6

View File

@ -229,10 +229,12 @@ rm -rf $RPM_BUILD_ROOT
%pre %pre
getent group dovecot >/dev/null || groupadd -r dovecot #dovecot uig and gid are reserved, see /usr/share/doc/setup-*/uidgid
getent group dovenull >/dev/null || groupadd -r dovenull getent group dovecot >/dev/null || groupadd -r --gid 97 dovecot
getent passwd dovecot >/dev/null || \ getent passwd dovecot >/dev/null || \
useradd -r -g dovecot -d /usr/libexec/dovecot -s /sbin/nologin -c "Dovecot IMAP server" dovecot useradd -r --uid 97 -g dovecot -d /usr/libexec/dovecot -s /sbin/nologin -c "Dovecot IMAP server" dovecot
getent group dovenull >/dev/null || groupadd -r dovenull
getent passwd dovenull >/dev/null || \ getent passwd dovenull >/dev/null || \
useradd -r -g dovenull -d /usr/libexec/dovecot -s /sbin/nologin -c "Dovecot's unauthorized user" dovenull useradd -r -g dovenull -d /usr/libexec/dovecot -s /sbin/nologin -c "Dovecot's unauthorized user" dovenull
exit 0 exit 0