Don't generate ssl cert in %post

This commit is contained in:
Jason Tibbitts 2016-11-23 22:15:22 -06:00
parent 6d20ca4084
commit 1b2d6bd211

View File

@ -272,27 +272,6 @@ getent passwd cyrus >/dev/null || /usr/sbin/useradd -c "Cyrus IMAP Server" -d /v
-G saslauth -s /sbin/nologin -u %uid -r %cyrususer
%post
# Create SSL certificates
exec > /dev/null 2> /dev/null
if [ ! -f %{ssl_pem_file} ]; then
pushd /etc/pki/tls/certs
umask 077
cat << EOF | make %{name}.pem
--
SomeState
SomeCity
SomeOrganization
SomeOrganizationalUnit
localhost.localdomain
root@localhost.localdomain
EOF
chown root.%{cyrusgroup} %{name}.pem
chmod 640 %{name}.pem
mv %{name}.pem %{ssl_pem_file}
popd
fi
%systemd_post cyrus-imapd.service
%preun