18 lines
508 B
Bash
18 lines
508 B
Bash
#!/bin/bash
|
|
|
|
echo "Installing Python Pip"
|
|
sudo apt-get install python3-pip
|
|
|
|
echo "Installing requirements"
|
|
pip3 install -r requirements.txt
|
|
|
|
echo "Downloading importer"
|
|
git clone https://github.com/ggMartinez/Proxmox-Cloud-Image-Importer /opt/Proxmox-Cloud-Image-Importer
|
|
|
|
echo "Creating symlink"
|
|
ln -s /opt/Proxmox-Cloud-Image-Importer/cloud-import.py /usr/bin/cloud-import
|
|
|
|
|
|
echo "Installed!! Run with 'cloud-import'"
|
|
echo "If you want to update, run 'cd /opt/Proxmox-Cloud-Image-Importer && git pull'."
|