mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-07-08 15:07:38 +00:00
default, no root password for alpine-* install
This commit is contained in:
@ -114,3 +114,15 @@ motd_ssh() {
|
||||
$STD /etc/init.d/sshd start
|
||||
fi
|
||||
}
|
||||
|
||||
customize() {
|
||||
msg_info "Customizing Container"
|
||||
bash -c "/etc/init.d/syslog stop;rc-update del syslog boot;passwd -d root" >/dev/null 2>&1
|
||||
msg_ok "Customized Container"
|
||||
}
|
||||
|
||||
root() {
|
||||
if ! getent shadow root | grep -q '^root:[^:]*:\?\$'; then
|
||||
customize
|
||||
fi
|
||||
}
|
Reference in New Issue
Block a user