From df9832da57313d07e2eca5f85a7717029ef12797 Mon Sep 17 00:00:00 2001 From: arakasi72 Date: Wed, 31 May 2017 18:06:25 +0100 Subject: [PATCH] Update rtinst.sh --- rtinst.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rtinst.sh b/rtinst.sh index 0298b2c..cd55722 100644 --- a/rtinst.sh +++ b/rtinst.sh @@ -450,14 +450,14 @@ if [ -z "$(grep "^[# ]*UsePAM" /etc/ssh/sshd_config)" ]; then echo >> /etc/ssh/sshd_config echo "UsePAM yes" >> /etc/ssh/sshd_config else - sed -i '/^#\|\s*UsePAM/ c\UsePAM yes' /etc/ssh/sshd_config + sed -i '/^#\?UsePAM/ c\UsePAM yes' /etc/ssh/sshd_config fi if [ -z "$(grep "^[# ]*UseDNS" /etc/ssh/sshd_config)" ]; then echo >> /etc/ssh/sshd_config echo "UseDNS no" >> /etc/ssh/sshd_config else - sed -i '/^#\|\s*UseDNS/ c\UseDNS no' /etc/ssh/sshd_config + sed -i '/^#\?UseDNS/ c\UseDNS no' /etc/ssh/sshd_config fi if [ -z "$(grep sshuser /etc/group)" ]; then