mirror of
https://github.com/tteck/Proxmox.git
synced 2025-02-15 06:09:15 +01:00
Code refactoring
This commit is contained in:
parent
b09f213c84
commit
c12f2773e7
97 changed files with 103 additions and 119 deletions
|
@ -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
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue