mirror of https://github.com/tteck/Proxmox.git
Change Latest to Beta (#425)
* Update haos-vm-v4.sh * Update README.md * Update CHANGELOG.MD
This commit is contained in:
parent
35826c04e1
commit
e2bea6da89
|
@ -8,7 +8,7 @@ All notable changes to this project will be documented in this file.
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
- **Home Assistant OS VM**
|
- **Home Assistant OS VM**
|
||||||
- Option to create VM using Stable, Latest or Dev Image
|
- Option to create VM using Stable, Beta or Dev Image
|
||||||
|
|
||||||
## 2022-08-11
|
## 2022-08-11
|
||||||
|
|
||||||
|
|
|
@ -127,7 +127,7 @@ ________________________________________________________________________________
|
||||||
<p align="center"><img src="https://github.com/tteck/Proxmox/blob/main/misc/images/haos.png?raw=true"/></p>
|
<p align="center"><img src="https://github.com/tteck/Proxmox/blob/main/misc/images/haos.png?raw=true"/></p>
|
||||||
|
|
||||||
<h1 align="center" id="heading"> Home Assistant OS VM </h1>
|
<h1 align="center" id="heading"> Home Assistant OS VM </h1>
|
||||||
<h3 align="center"> Option to create VM using Stable, Latest or Dev Image </h3>
|
<h3 align="center"> Option to create VM using Stable, Beta or Dev Image </h3>
|
||||||
|
|
||||||
The script automates the manual process of finding, downloading and extracting the Official KVM (qcow2) disk image provided by the Home Assistant Team, creating a VM with user defined settings, importing and attaching the disk, setting the boot order and starting the VM. No hidden (kpartx, unzip, ect...) installs of any kind. Supports lvmthin, zfspool, nfs, dir and btrfs storage types.
|
The script automates the manual process of finding, downloading and extracting the Official KVM (qcow2) disk image provided by the Home Assistant Team, creating a VM with user defined settings, importing and attaching the disk, setting the boot order and starting the VM. No hidden (kpartx, unzip, ect...) installs of any kind. Supports lvmthin, zfspool, nfs, dir and btrfs storage types.
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ echo -e "Loading..."
|
||||||
GEN_MAC=$(echo '00 60 2f'$(od -An -N3 -t xC /dev/urandom) | sed -e 's/ /:/g' | tr '[:lower:]' '[:upper:]')
|
GEN_MAC=$(echo '00 60 2f'$(od -An -N3 -t xC /dev/urandom) | sed -e 's/ /:/g' | tr '[:lower:]' '[:upper:]')
|
||||||
NEXTID=$(pvesh get /cluster/nextid)
|
NEXTID=$(pvesh get /cluster/nextid)
|
||||||
STABLE=$(curl -s https://raw.githubusercontent.com/home-assistant/version/master/stable.json | grep "ova" | awk '{print substr($2, 2, length($2)-3) }')
|
STABLE=$(curl -s https://raw.githubusercontent.com/home-assistant/version/master/stable.json | grep "ova" | awk '{print substr($2, 2, length($2)-3) }')
|
||||||
LATEST=$(curl -sX GET "https://api.github.com/repos/home-assistant/operating-system/releases" | awk '/tag_name/{print $4;exit}' FS='[""]')
|
BETA=$(curl -s https://raw.githubusercontent.com/home-assistant/version/master/beta.json | grep "ova" | awk '{print substr($2, 2, length($2)-3) }')
|
||||||
DEV=$(curl -s https://raw.githubusercontent.com/home-assistant/version/master/dev.json | grep "ova" | awk '{print substr($2, 2, length($2)-3) }')
|
DEV=$(curl -s https://raw.githubusercontent.com/home-assistant/version/master/dev.json | grep "ova" | awk '{print substr($2, 2, length($2)-3) }')
|
||||||
YW=`echo "\033[33m"`
|
YW=`echo "\033[33m"`
|
||||||
BL=`echo "\033[36m"`
|
BL=`echo "\033[36m"`
|
||||||
|
@ -103,7 +103,7 @@ function default_settings() {
|
||||||
function advanced_settings() {
|
function advanced_settings() {
|
||||||
BRANCH=$(whiptail --title "HAOS VERSION" --radiolist "Choose Version" 10 58 3 \
|
BRANCH=$(whiptail --title "HAOS VERSION" --radiolist "Choose Version" 10 58 3 \
|
||||||
"$STABLE" "Stable" ON \
|
"$STABLE" "Stable" ON \
|
||||||
"$LATEST" "Latest" OFF \
|
"$BETA" "Beta" OFF \
|
||||||
"$DEV" "Dev" OFF \
|
"$DEV" "Dev" OFF \
|
||||||
3>&1 1>&2 2>&3)
|
3>&1 1>&2 2>&3)
|
||||||
exitstatus=$?
|
exitstatus=$?
|
||||||
|
|
Loading…
Reference in New Issue