Update ishare2

This commit is contained in:
pnetlabrepo
2023-01-31 16:22:02 -03:00
committed by GitHub
parent 25dccb6c7a
commit be88d3dc6a

10
ishare2
View File

@@ -26,6 +26,7 @@ function set_url_constants() {
URL_UPGRADE_PNETLAB_FROM_any_TO_5_2_9=https://raw.githubusercontent.com/pnetlabrepo/ishare2/main/upgrades/from_any_to_5.2.9/upgrade.sh
URL_UPGRADE_PNETLAB_FROM_any_TO_5_3_0=https://raw.githubusercontent.com/pnetlabrepo/ishare2/main/upgrades/from_any_to_5.3.0/upgrade.sh
URL_UPGRADE_PNETLAB_FROM_any_TO_5_3_2=https://raw.githubusercontent.com/pnetlabrepo/ishare2/main/upgrades/from_any_to_5.3.2/upgrade.sh
URL_UPGRADE_PNETLAB_FROM_any_TO_5_3_4=https://raw.githubusercontent.com/pnetlabrepo/ishare2/main/upgrades/from_any_to_5.3.4/upgrade.sh
URL_GUI_APP_ZIP=https://raw.githubusercontent.com/pnetlabrepo/ishare2/main/gui/app.zip
URL_REQUIREMENTS_GUI_APP=https://raw.githubusercontent.com/pnetlabrepo/ishare2/main/gui/requirements.txt
URL_ISHARE2_GUI_VERSION=https://raw.githubusercontent.com/pnetlabrepo/ishare2/main/gui/version_gui
@@ -972,6 +973,7 @@ function menu_ishare2_upgrade_pnetlab() {
"Upgrade PNETLab: from any version to 5.2.9"
"Upgrade PNETLab: from any version to 5.3.0"
"Upgrade PNETLab: from any version to 5.3.2"
"Upgrade PNETLab: from any version to 5.3.4"
)
PS3="$prompt"
@@ -1019,11 +1021,17 @@ function menu_ishare2_upgrade_pnetlab() {
bash upgrade.sh
break
;;
8)
wget -O upgrade.sh $URL_UPGRADE_PNETLAB_FROM_any_TO_5_3_4 > /dev/null 2>&1
chmod +x upgrade.sh
bash upgrade.sh
break
;;
$((${#options[@]}+1)))
break
;;
*)
STR="Invalid option: Select a number from 1 to 8"
STR="Invalid option: Select a number from 1 to 9"
echo -e "${RED}$STR${NO_COLOR}"
continue
;;