mirror of
https://github.com/tteck/Proxmox.git
synced 2025-02-15 06:09:15 +01:00
default, no root password for alpine-* install
This commit is contained in:
parent
35f5b8413d
commit
6829e1121d
11 changed files with 22 additions and 5 deletions
|
@ -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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue