From 1b2d6bd2115b9cca2cf181e6b9dbbd6d2b4d73db Mon Sep 17 00:00:00 2001 From: Jason Tibbitts Date: Wed, 23 Nov 2016 22:15:22 -0600 Subject: [PATCH] Don't generate ssl cert in %post --- cyrus-imapd.spec | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/cyrus-imapd.spec b/cyrus-imapd.spec index 8a530bc..24ac041 100644 --- a/cyrus-imapd.spec +++ b/cyrus-imapd.spec @@ -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