|
|
|
@ -3,7 +3,7 @@ echo -e "Loading..." |
|
|
|
|
PVE=$(pveversion | grep "pve-manager/7" | wc -l) |
|
|
|
|
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) |
|
|
|
|
RELEASE=$(curl -sX GET "https://api.github.com/repos/home-assistant/operating-system/releases" | awk '/tag_name/{print $4;exit}' FS='[""]') |
|
|
|
|
LATEST=$(curl -sX GET "https://api.github.com/repos/home-assistant/operating-system/releases" | awk '/tag_name/{print $4;exit}' FS='[""]') |
|
|
|
|
STABLE=$(curl -s https://raw.githubusercontent.com/home-assistant/version/master/stable.json | grep "ova" | awk '{print substr($2, 2, length($2)-3) }') |
|
|
|
|
YW=`echo "\033[33m"` |
|
|
|
|
BL=`echo "\033[36m"` |
|
|
|
@ -101,7 +101,7 @@ function default_settings() { |
|
|
|
|
function advanced_settings() { |
|
|
|
|
BRANCH=$(whiptail --title "HAOS VERSION" --radiolist "Choose Version" 10 58 2 \ |
|
|
|
|
"$STABLE" "Stable" ON \ |
|
|
|
|
"$RELEASE" "Latest" OFF \ |
|
|
|
|
"$LATEST" "Latest" OFF \ |
|
|
|
|
3>&1 1>&2 2>&3) |
|
|
|
|
exitstatus=$? |
|
|
|
|
if [ $exitstatus = 0 ]; then |
|
|
|
|