Update rtinst.sh

This commit is contained in:
arakasi72
2017-05-31 18:06:25 +01:00
committed by GitHub
parent fcbda1d301
commit df9832da57
+2 -2
View File
@@ -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