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