code refactoring (#845)

This commit is contained in:
tteckster 2022-12-19 11:08:29 -05:00 committed by GitHub
parent 9507f9df5c
commit 13ac5e607f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
58 changed files with 116 additions and 232 deletions

View File

@ -107,9 +107,7 @@ EOF
msg_ok "Customized Container" msg_ok "Customized Container"
fi fi
if [[ "${SSH_ROOT}" == "yes" ]]; then if [[ "${SSH_ROOT}" == "yes" ]]; then
cat <<EOF >>/etc/ssh/sshd_config sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd systemctl restart sshd
fi fi

View File

@ -363,9 +363,7 @@ EOF
msg_ok "Customized Container" msg_ok "Customized Container"
fi fi
if [[ "${SSH_ROOT}" == "yes" ]]; then if [[ "${SSH_ROOT}" == "yes" ]]; then
cat <<EOF >>/etc/ssh/sshd_config sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd systemctl restart sshd
fi fi

View File

@ -116,9 +116,7 @@ EOF
msg_ok "Customized Container" msg_ok "Customized Container"
fi fi
if [[ "${SSH_ROOT}" == "yes" ]]; then if [[ "${SSH_ROOT}" == "yes" ]]; then
cat <<EOF >>/etc/ssh/sshd_config sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd systemctl restart sshd
fi fi

View File

@ -122,9 +122,7 @@ EOF
msg_ok "Customized Container" msg_ok "Customized Container"
fi fi
if [[ "${SSH_ROOT}" == "yes" ]]; then if [[ "${SSH_ROOT}" == "yes" ]]; then
cat <<EOF >>/etc/ssh/sshd_config sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd systemctl restart sshd
fi fi

View File

@ -109,9 +109,7 @@ EOF
msg_ok "Customized Container" msg_ok "Customized Container"
fi fi
if [[ "${SSH_ROOT}" == "yes" ]]; then if [[ "${SSH_ROOT}" == "yes" ]]; then
cat <<EOF >>/etc/ssh/sshd_config sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd systemctl restart sshd
fi fi

View File

@ -140,9 +140,7 @@ EOF
msg_ok "Customized Container" msg_ok "Customized Container"
fi fi
if [[ "${SSH_ROOT}" == "yes" ]]; then if [[ "${SSH_ROOT}" == "yes" ]]; then
cat <<EOF >>/etc/ssh/sshd_config sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd systemctl restart sshd
fi fi

View File

@ -101,9 +101,7 @@ EOF
msg_ok "Customized Container" msg_ok "Customized Container"
fi fi
if [[ "${SSH_ROOT}" == "yes" ]]; then if [[ "${SSH_ROOT}" == "yes" ]]; then
cat <<EOF >>/etc/ssh/sshd_config sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd systemctl restart sshd
fi fi

View File

@ -133,9 +133,7 @@ EOF
msg_ok "Customized Container" msg_ok "Customized Container"
fi fi
if [[ "${SSH_ROOT}" == "yes" ]]; then if [[ "${SSH_ROOT}" == "yes" ]]; then
cat <<EOF >>/etc/ssh/sshd_config sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd systemctl restart sshd
fi fi

View File

@ -159,9 +159,7 @@ EOF
msg_ok "Customized Container" msg_ok "Customized Container"
fi fi
if [[ "${SSH_ROOT}" == "yes" ]]; then if [[ "${SSH_ROOT}" == "yes" ]]; then
cat <<EOF >>/etc/ssh/sshd_config sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd systemctl restart sshd
fi fi

View File

@ -122,9 +122,7 @@ EOF
msg_ok "Customized Container" msg_ok "Customized Container"
fi fi
if [[ "${SSH_ROOT}" == "yes" ]]; then if [[ "${SSH_ROOT}" == "yes" ]]; then
cat <<EOF >>/etc/ssh/sshd_config sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd systemctl restart sshd
fi fi

View File

@ -107,9 +107,7 @@ EOF
msg_ok "Customized Container" msg_ok "Customized Container"
fi fi
if [[ "${SSH_ROOT}" == "yes" ]]; then if [[ "${SSH_ROOT}" == "yes" ]]; then
cat <<EOF >>/etc/ssh/sshd_config sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd systemctl restart sshd
fi fi

View File

@ -129,9 +129,7 @@ EOF
msg_ok "Customized Container" msg_ok "Customized Container"
fi fi
if [[ "${SSH_ROOT}" == "yes" ]]; then if [[ "${SSH_ROOT}" == "yes" ]]; then
cat <<EOF >>/etc/ssh/sshd_config sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd systemctl restart sshd
fi fi

View File

@ -116,9 +116,7 @@ EOF
msg_ok "Customized Container" msg_ok "Customized Container"
fi fi
if [[ "${SSH_ROOT}" == "yes" ]]; then if [[ "${SSH_ROOT}" == "yes" ]]; then
cat <<EOF >>/etc/ssh/sshd_config sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd systemctl restart sshd
fi fi
systemctl start grafana-server systemctl start grafana-server

View File

@ -145,9 +145,7 @@ EOF
msg_ok "Customized Container" msg_ok "Customized Container"
fi fi
if [[ "${SSH_ROOT}" == "yes" ]]; then if [[ "${SSH_ROOT}" == "yes" ]]; then
cat <<EOF >>/etc/ssh/sshd_config sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd systemctl restart sshd
fi fi

View File

@ -140,9 +140,7 @@ EOF
msg_ok "Customized Container" msg_ok "Customized Container"
fi fi
if [[ "${SSH_ROOT}" == "yes" ]]; then if [[ "${SSH_ROOT}" == "yes" ]]; then
cat <<EOF >>/etc/ssh/sshd_config sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd systemctl restart sshd
fi fi

View File

@ -185,9 +185,7 @@ EOF
msg_ok "Customized Container" msg_ok "Customized Container"
fi fi
if [[ "${SSH_ROOT}" == "yes" ]]; then if [[ "${SSH_ROOT}" == "yes" ]]; then
cat <<EOF >>/etc/ssh/sshd_config sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd systemctl restart sshd
fi fi

View File

@ -343,9 +343,7 @@ EOF
msg_ok "Customized Container" msg_ok "Customized Container"
fi fi
if [[ "${SSH_ROOT}" == "yes" ]]; then if [[ "${SSH_ROOT}" == "yes" ]]; then
cat <<EOF >>/etc/ssh/sshd_config sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd systemctl restart sshd
fi fi

View File

@ -119,9 +119,7 @@ EOF
msg_ok "Customized Container" msg_ok "Customized Container"
fi fi
if [[ "${SSH_ROOT}" == "yes" ]]; then if [[ "${SSH_ROOT}" == "yes" ]]; then
cat <<EOF >>/etc/ssh/sshd_config sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd systemctl restart sshd
fi fi

View File

@ -137,9 +137,7 @@ EOF
msg_ok "Customized Container" msg_ok "Customized Container"
fi fi
if [[ "${SSH_ROOT}" == "yes" ]]; then if [[ "${SSH_ROOT}" == "yes" ]]; then
cat <<EOF >>/etc/ssh/sshd_config sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd systemctl restart sshd
fi fi

View File

@ -140,9 +140,7 @@ EOF
msg_ok "Customized Container" msg_ok "Customized Container"
fi fi
if [[ "${SSH_ROOT}" == "yes" ]]; then if [[ "${SSH_ROOT}" == "yes" ]]; then
cat <<EOF >>/etc/ssh/sshd_config sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd systemctl restart sshd
fi fi

View File

@ -107,9 +107,7 @@ EOF
msg_ok "Customized Container" msg_ok "Customized Container"
fi fi
if [[ "${SSH_ROOT}" == "yes" ]]; then if [[ "${SSH_ROOT}" == "yes" ]]; then
cat <<EOF >>/etc/ssh/sshd_config sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd systemctl restart sshd
fi fi

View File

@ -147,9 +147,7 @@ EOF
msg_ok "Customized Container" msg_ok "Customized Container"
fi fi
if [[ "${SSH_ROOT}" == "yes" ]]; then if [[ "${SSH_ROOT}" == "yes" ]]; then
cat <<EOF >>/etc/ssh/sshd_config sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd systemctl restart sshd
fi fi

View File

@ -128,9 +128,7 @@ EOF
msg_ok "Customized Container" msg_ok "Customized Container"
fi fi
if [[ "${SSH_ROOT}" == "yes" ]]; then if [[ "${SSH_ROOT}" == "yes" ]]; then
cat <<EOF >>/etc/ssh/sshd_config sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd systemctl restart sshd
fi fi

View File

@ -224,9 +224,7 @@ EOF
msg_ok "Customized Container" msg_ok "Customized Container"
fi fi
if [[ "${SSH_ROOT}" == "yes" ]]; then if [[ "${SSH_ROOT}" == "yes" ]]; then
cat <<EOF >>/etc/ssh/sshd_config sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd systemctl restart sshd
fi fi

View File

@ -124,9 +124,7 @@ EOF
msg_ok "Customized Container" msg_ok "Customized Container"
fi fi
if [[ "${SSH_ROOT}" == "yes" ]]; then if [[ "${SSH_ROOT}" == "yes" ]]; then
cat <<EOF >>/etc/ssh/sshd_config sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd systemctl restart sshd
fi fi

View File

@ -118,9 +118,7 @@ EOF
msg_ok "Customized Container" msg_ok "Customized Container"
fi fi
if [[ "${SSH_ROOT}" == "yes" ]]; then if [[ "${SSH_ROOT}" == "yes" ]]; then
cat <<EOF >>/etc/ssh/sshd_config sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd systemctl restart sshd
fi fi

View File

@ -137,9 +137,7 @@ EOF
msg_ok "Customized Container" msg_ok "Customized Container"
fi fi
if [[ "${SSH_ROOT}" == "yes" ]]; then if [[ "${SSH_ROOT}" == "yes" ]]; then
cat <<EOF >>/etc/ssh/sshd_config sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd systemctl restart sshd
fi fi

View File

@ -114,9 +114,7 @@ EOF
msg_ok "Customized Container" msg_ok "Customized Container"
fi fi
if [[ "${SSH_ROOT}" == "yes" ]]; then if [[ "${SSH_ROOT}" == "yes" ]]; then
cat <<EOF >>/etc/ssh/sshd_config sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd systemctl restart sshd
fi fi

View File

@ -130,9 +130,7 @@ EOF
msg_ok "Customized Container" msg_ok "Customized Container"
fi fi
if [[ "${SSH_ROOT}" == "yes" ]]; then if [[ "${SSH_ROOT}" == "yes" ]]; then
cat <<EOF >>/etc/ssh/sshd_config sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd systemctl restart sshd
fi fi

View File

@ -156,9 +156,7 @@ EOF
msg_ok "Customized Container" msg_ok "Customized Container"
fi fi
if [[ "${SSH_ROOT}" == "yes" ]]; then if [[ "${SSH_ROOT}" == "yes" ]]; then
cat <<EOF >>/etc/ssh/sshd_config sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd systemctl restart sshd
fi fi

View File

@ -105,9 +105,7 @@ EOF
msg_ok "Customized Container" msg_ok "Customized Container"
fi fi
if [[ "${SSH_ROOT}" == "yes" ]]; then if [[ "${SSH_ROOT}" == "yes" ]]; then
cat <<EOF >>/etc/ssh/sshd_config sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd systemctl restart sshd
fi fi

View File

@ -262,9 +262,7 @@ EOF
msg_ok "Customized Container" msg_ok "Customized Container"
fi fi
if [[ "${SSH_ROOT}" == "yes" ]]; then if [[ "${SSH_ROOT}" == "yes" ]]; then
cat <<EOF >>/etc/ssh/sshd_config sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd systemctl restart sshd
fi fi

View File

@ -136,9 +136,7 @@ EOF
msg_ok "Customized Container" msg_ok "Customized Container"
fi fi
if [[ "${SSH_ROOT}" == "yes" ]]; then if [[ "${SSH_ROOT}" == "yes" ]]; then
cat <<EOF >>/etc/ssh/sshd_config sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd systemctl restart sshd
fi fi

View File

@ -138,9 +138,7 @@ EOF
msg_ok "Customized Container" msg_ok "Customized Container"
fi fi
if [[ "${SSH_ROOT}" == "yes" ]]; then if [[ "${SSH_ROOT}" == "yes" ]]; then
cat <<EOF >>/etc/ssh/sshd_config sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd systemctl restart sshd
fi fi

View File

@ -112,9 +112,7 @@ EOF
msg_ok "Customized Container" msg_ok "Customized Container"
fi fi
if [[ "${SSH_ROOT}" == "yes" ]]; then if [[ "${SSH_ROOT}" == "yes" ]]; then
cat <<EOF >>/etc/ssh/sshd_config sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd systemctl restart sshd
fi fi

View File

@ -124,9 +124,7 @@ EOF
msg_ok "Customized Container" msg_ok "Customized Container"
fi fi
if [[ "${SSH_ROOT}" == "yes" ]]; then if [[ "${SSH_ROOT}" == "yes" ]]; then
cat <<EOF >>/etc/ssh/sshd_config sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd systemctl restart sshd
fi fi

View File

@ -124,9 +124,7 @@ EOF
msg_ok "Customized Container" msg_ok "Customized Container"
fi fi
if [[ "${SSH_ROOT}" == "yes" ]]; then if [[ "${SSH_ROOT}" == "yes" ]]; then
cat <<EOF >>/etc/ssh/sshd_config sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd systemctl restart sshd
fi fi

View File

@ -197,9 +197,7 @@ EOF
msg_ok "Customized Container" msg_ok "Customized Container"
fi fi
if [[ "${SSH_ROOT}" == "yes" ]]; then if [[ "${SSH_ROOT}" == "yes" ]]; then
cat <<EOF >>/etc/ssh/sshd_config sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd systemctl restart sshd
fi fi

View File

@ -127,9 +127,7 @@ EOF
msg_ok "Customized Container" msg_ok "Customized Container"
fi fi
if [[ "${SSH_ROOT}" == "yes" ]]; then if [[ "${SSH_ROOT}" == "yes" ]]; then
cat <<EOF >>/etc/ssh/sshd_config sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd systemctl restart sshd
fi fi

View File

@ -126,9 +126,7 @@ EOF
msg_ok "Customized Container" msg_ok "Customized Container"
fi fi
if [[ "${SSH_ROOT}" == "yes" ]]; then if [[ "${SSH_ROOT}" == "yes" ]]; then
cat <<EOF >>/etc/ssh/sshd_config sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd systemctl restart sshd
fi fi

View File

@ -160,9 +160,7 @@ EOF
msg_ok "Customized Container" msg_ok "Customized Container"
fi fi
if [[ "${SSH_ROOT}" == "yes" ]]; then if [[ "${SSH_ROOT}" == "yes" ]]; then
cat <<EOF >>/etc/ssh/sshd_config sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd systemctl restart sshd
fi fi

View File

@ -231,9 +231,7 @@ EOF
msg_ok "Customized Container" msg_ok "Customized Container"
fi fi
if [[ "${SSH_ROOT}" == "yes" ]]; then if [[ "${SSH_ROOT}" == "yes" ]]; then
cat <<EOF >>/etc/ssh/sshd_config sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd systemctl restart sshd
fi fi

View File

@ -136,9 +136,7 @@ EOF
msg_ok "Customized Container" msg_ok "Customized Container"
fi fi
if [[ "${SSH_ROOT}" == "yes" ]]; then if [[ "${SSH_ROOT}" == "yes" ]]; then
cat <<EOF >>/etc/ssh/sshd_config sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd systemctl restart sshd
fi fi

View File

@ -195,9 +195,7 @@ EOF
msg_ok "Customized Container" msg_ok "Customized Container"
fi fi
if [[ "${SSH_ROOT}" == "yes" ]]; then if [[ "${SSH_ROOT}" == "yes" ]]; then
cat <<EOF >>/etc/ssh/sshd_config sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd systemctl restart sshd
fi fi

View File

@ -165,9 +165,7 @@ EOF
msg_ok "Customized Container" msg_ok "Customized Container"
fi fi
if [[ "${SSH_ROOT}" == "yes" ]]; then if [[ "${SSH_ROOT}" == "yes" ]]; then
cat <<EOF >>/etc/ssh/sshd_config sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd systemctl restart sshd
fi fi

View File

@ -110,9 +110,7 @@ EOF
msg_ok "Customized Container" msg_ok "Customized Container"
fi fi
if [[ "${SSH_ROOT}" == "yes" ]]; then if [[ "${SSH_ROOT}" == "yes" ]]; then
cat <<EOF >>/etc/ssh/sshd_config sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd systemctl restart sshd
fi fi

View File

@ -107,9 +107,7 @@ EOF
msg_ok "Customized Container" msg_ok "Customized Container"
fi fi
if [[ "${SSH_ROOT}" == "yes" ]]; then if [[ "${SSH_ROOT}" == "yes" ]]; then
cat <<EOF >>/etc/ssh/sshd_config sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd systemctl restart sshd
fi fi

View File

@ -131,9 +131,7 @@ EOF
msg_ok "Customized Container" msg_ok "Customized Container"
fi fi
if [[ "${SSH_ROOT}" == "yes" ]]; then if [[ "${SSH_ROOT}" == "yes" ]]; then
cat <<EOF >>/etc/ssh/sshd_config sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd systemctl restart sshd
fi fi

View File

@ -102,9 +102,7 @@ EOF
msg_ok "Customized Container" msg_ok "Customized Container"
fi fi
if [[ "${SSH_ROOT}" == "yes" ]]; then if [[ "${SSH_ROOT}" == "yes" ]]; then
cat <<EOF >>/etc/ssh/sshd_config sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd systemctl restart sshd
fi fi

View File

@ -117,9 +117,7 @@ EOF
msg_ok "Customized Container" msg_ok "Customized Container"
fi fi
if [[ "${SSH_ROOT}" == "yes" ]]; then if [[ "${SSH_ROOT}" == "yes" ]]; then
cat <<EOF >>/etc/ssh/sshd_config sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd systemctl restart sshd
fi fi
msg_info "Cleaning up" msg_info "Cleaning up"

View File

@ -115,9 +115,7 @@ EOF
msg_ok "Customized Container" msg_ok "Customized Container"
fi fi
if [[ "${SSH_ROOT}" == "yes" ]]; then if [[ "${SSH_ROOT}" == "yes" ]]; then
cat <<EOF >>/etc/ssh/sshd_config sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd systemctl restart sshd
fi fi

View File

@ -136,9 +136,7 @@ EOF
msg_ok "Customized Container" msg_ok "Customized Container"
fi fi
if [[ "${SSH_ROOT}" == "yes" ]]; then if [[ "${SSH_ROOT}" == "yes" ]]; then
cat <<EOF >>/etc/ssh/sshd_config sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd systemctl restart sshd
fi fi

View File

@ -192,9 +192,7 @@ EOF
msg_ok "Customized Container" msg_ok "Customized Container"
fi fi
if [[ "${SSH_ROOT}" == "yes" ]]; then if [[ "${SSH_ROOT}" == "yes" ]]; then
cat <<EOF >>/etc/ssh/sshd_config sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd systemctl restart sshd
fi fi

View File

@ -124,9 +124,7 @@ EOF
msg_ok "Customized Container" msg_ok "Customized Container"
fi fi
if [[ "${SSH_ROOT}" == "yes" ]]; then if [[ "${SSH_ROOT}" == "yes" ]]; then
cat <<EOF >>/etc/ssh/sshd_config sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd systemctl restart sshd
fi fi

View File

@ -152,9 +152,7 @@ EOF
msg_ok "Customized Container" msg_ok "Customized Container"
fi fi
if [[ "${SSH_ROOT}" == "yes" ]]; then if [[ "${SSH_ROOT}" == "yes" ]]; then
cat <<EOF >>/etc/ssh/sshd_config sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd systemctl restart sshd
fi fi

View File

@ -166,9 +166,7 @@ EOF
msg_ok "Customized Container" msg_ok "Customized Container"
fi fi
if [[ "${SSH_ROOT}" == "yes" ]]; then if [[ "${SSH_ROOT}" == "yes" ]]; then
cat <<EOF >>/etc/ssh/sshd_config sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd systemctl restart sshd
fi fi

View File

@ -152,9 +152,7 @@ EOF
msg_ok "Customized Container" msg_ok "Customized Container"
fi fi
if [[ "${SSH_ROOT}" == "yes" ]]; then if [[ "${SSH_ROOT}" == "yes" ]]; then
cat <<EOF >>/etc/ssh/sshd_config sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd systemctl restart sshd
fi fi

View File

@ -128,9 +128,7 @@ EOF
msg_ok "Customized Container" msg_ok "Customized Container"
fi fi
if [[ "${SSH_ROOT}" == "yes" ]]; then if [[ "${SSH_ROOT}" == "yes" ]]; then
cat <<EOF >>/etc/ssh/sshd_config sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd systemctl restart sshd
fi fi