From 4abac0a05d7b752e90f64fe30a01cee9ced725e4 Mon Sep 17 00:00:00 2001 From: Gustavo Homem Date: Thu, 21 Mar 2013 18:22:21 +0000 Subject: [PATCH] remove awkward rsakeys.init comparison --- instfiles/init.d/xrdp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/instfiles/init.d/xrdp b/instfiles/init.d/xrdp index f9804381..2cf20999 100644 --- a/instfiles/init.d/xrdp +++ b/instfiles/init.d/xrdp @@ -67,7 +67,7 @@ if [ "$(id -u)" = "0" ]; then chown $USERID:$USERID $PIDDIR # Check for rsa key - if [ ! -f $RSAKEYS ] || cmp $RSAKEYS /usr/share/doc/xrdp/rsakeys.ini > /dev/null; then + if [ ! -f $RSAKEYS ] ; then log_action_begin_msg "Generating xrdp RSA keys..." (umask 077 ; xrdp-keygen xrdp $RSAKEYS) chown $USERID:$USERID $RSAKEYS