2022-01-03 17:38:23 +01:00

10 lines
189 B
Bash
Executable File

#!/bin/bash
num1="$1"
num2="$2"
nom="$3"
ip="$4"
qm clone "${num1}" "${num2}" --name "${nom}"
qm set "${num2}" --sshkeys id_rsa.pub
qm set "${num2}" --ipconfig0 ip="${ip}",gw=192.168.0.1