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

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