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,7 +10,8 @@ function createImage() {
|
|||||||
IMAGE_CORES="$6"
|
IMAGE_CORES="$6"
|
||||||
IMAGE_STORE="$7"
|
IMAGE_STORE="$7"
|
||||||
IMAGE_TYPE="$8"
|
IMAGE_TYPE="$8"
|
||||||
|
SSH_KEYS_FILE="keys"
|
||||||
|
|
||||||
stat "${IMAGE_FILE}"
|
stat "${IMAGE_FILE}"
|
||||||
if [ "$?" -gt "0" ]
|
if [ "$?" -gt "0" ]
|
||||||
then
|
then
|
||||||
@ -66,9 +67,9 @@ function createImage() {
|
|||||||
qm set ${IMAGE_ID} --vga std
|
qm set ${IMAGE_ID} --vga std
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
qm set ${IMAGE_ID} --ipconfig0 ip=dhcp
|
||||||
qm set ${IMAGE_ID} --agent enabled=1
|
qm set ${IMAGE_ID} --agent enabled=1
|
||||||
|
qm set ${IMAGE_ID} --sshkeys ${SSH_KEYS_FILE}
|
||||||
rm -vf "${IMAGE_FILE}"
|
rm -vf "${IMAGE_FILE}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user