Don't generate ssl cert in %post
This commit is contained in:
parent
6d20ca4084
commit
1b2d6bd211
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user