diff --git a/cloud-import.py b/cloud-import.py index a12070a..971fafd 100644 --- a/cloud-import.py +++ b/cloud-import.py @@ -25,7 +25,7 @@ def importTemplate(name, storage, id): file = f"/tmp/{file}" print(f"Importing {file} to {storage} with id {id}") templateName = os.path.basename(file).split(".")[0] - os.popen(f'qm create {id} --memory 2048 --net0 virtio,bridge=vmbr0 --scsihw virtio-scsi-pci --name "{templateName}" --tag temlate').read() + os.popen(f'qm create {id} --memory 2048 --net0 virtio,bridge=vmbr0 --scsihw virtio-scsi-pci --name "{templateName}" --tag template').read() os.popen(f'qm set {id} --scsi0 {storage}:0,import-from={file}').read() os.popen(f'qm set {id} --ide2 {storage}:cloudinit').read() os.popen(f'qm set {id} --boot order=scsi0').read() diff --git a/install.sh b/install.sh index d0dcdfb..b466f19 100644 --- a/install.sh +++ b/install.sh @@ -22,7 +22,8 @@ else fi echo "Downloading importer... \n\n" -git clone https://github.com/ggMartinez/Proxmox-Cloud-Image-Importer $outputDirectory && cd $outputDirectory +git clone https://github.com/ggMartinez/Proxmox-Cloud-Image-Importer $outputDirectory && cd $outputDirectory && git config core.fileMode false + echo "Installing requirements\n\n"