4 Commits

Author SHA1 Message Date
pnetlabrepo
d3e618759b Update CHANGELOG.md 2023-01-23 01:02:04 -03:00
pnetlabrepo
c75ee783b6 Update version 2023-01-23 00:56:12 -03:00
pnetlabrepo
d880061a22 Update ishare2 2023-01-23 00:55:59 -03:00
Alex
0fa229324a Fixed download link
Updated 5.2.8 update package link to new index's link
Added --content-disposition to wget since the new index's direct download link requires that to work
2023-01-22 21:06:31 -06:00
4 changed files with 16 additions and 8 deletions

View File

@@ -1,6 +1,16 @@
# Changelog
All notable changes to this project will be documented in this file. You can upgrade ishare2 to the latest version using `ishare2 upgrade` and then selecting `option 1`
## [v1.5.4] - 2023-Jan-23
1) Modified: Changes were made in set_yml_template_folder_location() function. Now, this function support the following PNETLab versions:
For `/opt/unetlab/html/templates/`: 4.2.10 and 5.0.1
For `/opt/unetlab/html/templates/intel/` or `/opt/unetlab/html/templates/amd/`: 5.2.x, 5.3.x and 6.x
5.3.x is not implemented yet (Change made in case it is needed in the future)
## [v1.5.3] - 2023-Jan-22
1) Modified: --content-disposition was added in order to download images from other repo

View File

@@ -64,13 +64,11 @@ function set_yml_template_folder_location() {
data_array=($data)
pnetlab_version=${data_array[1]}
if [[ $pnetlab_version == "4.2.10" ]]; then YML_DIR="/opt/unetlab/html/templates/" ; fi
if [[ $pnetlab_version == "5.2.5" ]] || [[ $pnetlab_version == "5.2.6" ]] || [[ $pnetlab_version == "5.2.7" ]] || [[ $pnetlab_version == "5.2.8" ]]; then
get_server_platform
if [[ $pnetlab_version == "4.2.10" ]] || [[ $pnetlab_version == "5.0.1" ]]; then
YML_DIR="/opt/unetlab/html/templates/"
fi
if [[ $pnetlab_version == *6.* ]]; then
if [[ $pnetlab_version == *5.2* ]] || [[ $pnetlab_version == *5.3* ]] || [[ $pnetlab_version == *6.* ]]; then
get_server_platform
fi
}

View File

@@ -8,7 +8,7 @@
NEW_PNETLAB_VERSION=5.2.8
GREEN='\033[32m'
NO_COLOR='\033[0m'
URL_ZIP_FILE=https://unetlab.cloud/0:/upgrades_pnetlab/from_any_to_5.2.8/5.2.8.zip
URL_ZIP_FILE=https://unetlab.cloud/api/raw/?path=/UNETLAB%20I/upgrades_pnetlab/from_any_to_5.2.8/5.2.8.zip
# Getting PNETLab version from db
data=$(mysql -uroot -ppnetlab -D pnetlab_db -e "SELECT control_value FROM control WHERE control_value>1;" 2>/dev/null)
@@ -26,7 +26,7 @@ if [[ $pnetlab_version == *6.* ]]; then
fi
echo -e "${GREEN}Downloading $NEW_PNETLAB_VERSION zip file...${NO_COLOR}"
wget -q --show-progress -O /root/$NEW_PNETLAB_VERSION.zip $URL_ZIP_FILE
wget --content-disposition -q --show-progress -O /root/$NEW_PNETLAB_VERSION.zip $URL_ZIP_FILE
echo -e "${GREEN}$NEW_PNETLAB_VERSION zip file has been downloaded successfully${NO_COLOR}"
cd /root && rm -rf upgrade

View File

@@ -1 +1 @@
v1.5.3
v1.5.4