remove awkward rsakeys.init comparison

This commit is contained in:
Gustavo Homem 2013-03-21 18:22:21 +00:00
parent e702ac79d4
commit 4abac0a05d

View File

@ -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