5
This commit is contained in:
parent
779608fc68
commit
1eac046bd9
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
keys
|
||||
flags/*
|
@ -10,6 +10,7 @@ function createImage() {
|
||||
IMAGE_CORES="$6"
|
||||
IMAGE_STORE="$7"
|
||||
IMAGE_TYPE="$8"
|
||||
SSH_KEYS_FILE="keys"
|
||||
|
||||
stat "${IMAGE_FILE}"
|
||||
if [ "$?" -gt "0" ]
|
||||
@ -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}"
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user