Clean up %pre.

This commit is contained in:
Jason Tibbitts 2016-11-23 22:14:45 -06:00
parent c9b618f56b
commit 6d20ca4084

View File

@ -267,9 +267,9 @@ find %buildroot -name ".packlist" -exec rm {} \;
%pre %pre
# Create 'cyrus' user on target host # Create 'cyrus' user on target host
getent group saslauth >/dev/null || /usr/sbin/groupadd -g %{gid} -r saslauth getent group saslauth >/dev/null || /usr/sbin/groupadd -g %gid -r saslauth
getent passwd cyrus >/dev/null || /usr/sbin/useradd -c "Cyrus IMAP Server" -d %{_var}/lib/imap -g %{cyrusgroup} \ getent passwd cyrus >/dev/null || /usr/sbin/useradd -c "Cyrus IMAP Server" -d /var/lib/imap -g %cyrusgroup \
-G saslauth -s /sbin/nologin -u %{uid} -r %{cyrususer} -G saslauth -s /sbin/nologin -u %uid -r %cyrususer
%post %post
# Create SSL certificates # Create SSL certificates