mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-07-08 23:17:38 +00:00
Code refactoring
This commit is contained in:
@ -117,13 +117,9 @@ motd_ssh() {
|
||||
}
|
||||
|
||||
customize() {
|
||||
if [[ "$PASSWORD" == "" ]]; then
|
||||
msg_info "Customizing Container"
|
||||
bash -c "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