This commit is contained in:
root 2024-01-21 04:01:03 +02:00
parent 779608fc68
commit 1eac046bd9
2 changed files with 6 additions and 3 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
keys
flags/*

View File

@ -10,7 +10,8 @@ function createImage() {
IMAGE_CORES="$6"
IMAGE_STORE="$7"
IMAGE_TYPE="$8"
SSH_KEYS_FILE="keys"
stat "${IMAGE_FILE}"
if [ "$?" -gt "0" ]
then
@ -66,9 +67,9 @@ function createImage() {
qm set ${IMAGE_ID} --vga std
;;
esac
qm set ${IMAGE_ID} --ipconfig0 ip=dhcp
qm set ${IMAGE_ID} --agent enabled=1
qm set ${IMAGE_ID} --sshkeys ${SSH_KEYS_FILE}
rm -vf "${IMAGE_FILE}"
}