Add installer and uninstaller script
This commit is contained in:
27
README.md
27
README.md
@@ -26,21 +26,36 @@ sudo apt install qemu-utils libguestfs-tools
|
||||
|
||||
## Installation
|
||||
|
||||
### Build from source:
|
||||
### Quick Install (Recommended):
|
||||
|
||||
```bash
|
||||
git clone <repo-url>
|
||||
cd cloud-image
|
||||
sudo ./install.sh
|
||||
```
|
||||
|
||||
Installer akan otomatis:
|
||||
- Install dependencies (qemu-utils, libguestfs-tools)
|
||||
- Build binary
|
||||
- Install ke `/usr/local/bin`
|
||||
|
||||
### Manual Build:
|
||||
|
||||
```bash
|
||||
git clone <repo-url>
|
||||
cd cloud-image
|
||||
go build -o proxmox-cloud-image
|
||||
```
|
||||
|
||||
### Install globally (Linux):
|
||||
|
||||
```bash
|
||||
sudo cp proxmox-cloud-image /usr/local/bin/
|
||||
sudo chmod +x /usr/local/bin/proxmox-cloud-image
|
||||
```
|
||||
|
||||
### Uninstall:
|
||||
|
||||
```bash
|
||||
cd cloud-image
|
||||
sudo ./uninstall.sh
|
||||
```
|
||||
|
||||
Setelah install, bisa langsung dipanggil dari mana aja:
|
||||
```bash
|
||||
proxmox-cloud-image -h
|
||||
|
||||
Reference in New Issue
Block a user