Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d3e618759b | ||
|
|
c75ee783b6 | ||
|
|
d880061a22 | ||
|
|
0fa229324a |
10
CHANGELOG.md
10
CHANGELOG.md
@@ -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
|
||||
|
||||
8
ishare2
8
ishare2
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user