From 0e617c2d5a3140ec425940accebc49c4dea1cfbf Mon Sep 17 00:00:00 2001 From: Bojan Smojver Date: Sat, 10 Aug 2019 09:09:51 +1000 Subject: [PATCH] Touch rsakeys.ini, because on FIPS enabled systems, xrdp-keygen fails. --- xrdp.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xrdp.spec b/xrdp.spec index 321af44..941b9b0 100644 --- a/xrdp.spec +++ b/xrdp.spec @@ -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