mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-10-07 21:52:52 +02:00
default, no root password for alpine-* install
This commit is contained in:
1 parent
35f5b8413d
commit
6829e1121d
11 files changed
+22
-5
No files matched your search
@@ -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