Actualiser debian12-fr.sh
This commit is contained in:
@@ -572,6 +572,12 @@ packages:
|
||||
|
||||
locale: ${LOCALE}
|
||||
|
||||
disable_root: false
|
||||
ssh_pwauth: false
|
||||
chpasswd:
|
||||
expire: false
|
||||
list: []
|
||||
|
||||
write_files:
|
||||
- path: /etc/default/keyboard
|
||||
content: |
|
||||
@@ -607,6 +613,10 @@ runcmd:
|
||||
# systemd-localed (optional)
|
||||
- command -v localectl >/dev/null 2>&1 && localectl set-locale LANG=${LOCALE} || true
|
||||
- command -v localectl >/dev/null 2>&1 && localectl set-keymap ${CONSOLE_KEYMAP} || true
|
||||
|
||||
- sed -i 's/^#\?PasswordAuthentication .*/PasswordAuthentication no/' /etc/ssh/sshd_config
|
||||
- sed -i 's/^#\?PermitRootLogin .*/PermitRootLogin prohibit-password/' /etc/ssh/sshd_config
|
||||
- systemctl restart ssh || true
|
||||
EOF
|
||||
|
||||
qm set $VMID --cicustom "user=local:snippets/${VMID}-user-data.yaml" >/dev/null
|
||||
@@ -659,6 +669,8 @@ else
|
||||
qm resize $VMID scsi0 ${DEFAULT_DISK_SIZE} >/dev/null
|
||||
fi
|
||||
|
||||
qm set "$VMID" --ciuser root
|
||||
|
||||
msg_ok "Created a Debian 12 VM ${CL}${BL}(${HN})"
|
||||
|
||||
# Requested: VM should not start automatically => START_VM defaults to "no"
|
||||
|
||||
Reference in New Issue
Block a user