mirror of
https://github.com/tteck/Proxmox.git
synced 2025-02-19 12:56:01 +00:00
Update install.func
This commit is contained in:
@@ -114,23 +114,3 @@ motd_ssh() {
|
||||
systemctl restart sshd
|
||||
fi
|
||||
}
|
||||
|
||||
customize() {
|
||||
msg_info "Customizing Container"
|
||||
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
||||
mkdir -p $(dirname $GETTY_OVERRIDE)
|
||||
cat <<EOF >$GETTY_OVERRIDE
|
||||
[Service]
|
||||
ExecStart=
|
||||
ExecStart=-/sbin/agetty --autologin root --noclear --keep-baud tty%I 115200,38400,9600 \$TERM
|
||||
EOF
|
||||
systemctl daemon-reload
|
||||
systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//')
|
||||
msg_ok "Customized Container"
|
||||
}
|
||||
|
||||
root() {
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
customize
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user