Touch rsakeys.ini, because on FIPS enabled systems, xrdp-keygen fails.

This commit is contained in:
Bojan Smojver 2019-08-10 09:09:51 +10:00
parent f7fa226b26
commit 0e617c2d5a

View File

@ -168,7 +168,7 @@ fi
%posttrans
if [ ! -s %{_sysconfdir}/xrdp/rsakeys.ini ]; then
(umask 377; %{_bindir}/xrdp-keygen xrdp %{_sysconfdir}/xrdp/rsakeys.ini >/dev/null)
(umask 377; %{__touch} %{_sysconfdir}/xrdp/rsakeys.ini; %{_bindir}/xrdp-keygen xrdp %{_sysconfdir}/xrdp/rsakeys.ini &>/dev/null)
fi
if [ ! -s %{_sysconfdir}/xrdp/cert.pem ]; then