mirror of
https://github.com/tteck/Proxmox.git
synced 2025-02-15 06:09:15 +01:00
code refactoring (#845)
This commit is contained in:
parent
9507f9df5c
commit
13ac5e607f
58 changed files with 116 additions and 232 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue