We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6f4462 commit 3a9e8b0Copy full SHA for 3a9e8b0
install/upgrade/versions/latest.sh
@@ -13,9 +13,11 @@ if [ -z $THEME ]; then
13
fi
14
15
# Reduce SSH login grace time
16
-echo "(*) Hardening SSH daemon configuration..."
17
-sed -i "s/LoginGraceTime 2m/LoginGraceTime 1m/g" /etc/ssh/sshd_config
18
-sed -i "s/#LoginGraceTime 2m/LoginGraceTime 1m/g" /etc/ssh/sshd_config
+if [ -e /etc/ssh/sshd_config ]; then
+ echo "(*) Hardening SSH daemon configuration..."
+ sed -i "s/LoginGraceTime 2m/LoginGraceTime 1m/g" /etc/ssh/sshd_config
19
+ sed -i "s/#LoginGraceTime 2m/LoginGraceTime 1m/g" /etc/ssh/sshd_config
20
+fi
21
22
# Implement recidive jail for fail2ban
23
if [ ! -z "$FIREWALL_EXTENSION" ]; then
0 commit comments