Skip to content

Commit f874bad

Browse files
committed
chore: inital code for Ubuntu 24.04
1 parent d2e37c2 commit f874bad

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

docs/linux/installer.sh

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -460,17 +460,25 @@ downloadLatestReleaseInfo() {
460460
#
461461
downloadAndInstall(){
462462
# Check Ubuntu version for compatibility
463-
if [ -f /etc/os-release ]; then
464-
. /etc/os-release
465-
if [[ "$ID" = "ubuntu" && "$VERSION_ID" = "24.04" ]]; then
466-
echo -e "${RED}Ubuntu 24.04 LTS is not currently supported by this installation script.${RESET}"
467-
echo -e "${YELLOW}Please use an earlier version of Ubuntu for the time being. Check back later for updates.${RESET}"
468-
exit 1
469-
fi
470-
fi
463+
471464

472465
echo "Using temporary directory $TMP_DIR for processing"
473466
downloadLatestReleaseInfo > /dev/null
467+
if [ -f /etc/os-release ]; then
468+
. /etc/os-release
469+
if [[ "$ID" = "ubuntu" && "$VERSION_ID" = "24.04" ]]; then
470+
local latestFileUrl
471+
latestFileUrl=$(grep -oP 'https://[^"]*latest\.json' "$TMP_DIR/latest_release.json")
472+
WGET_OPTS=$(configure_wget_options)
473+
474+
wget $WGET_OPTS "$TMP_DIR/latest.json" "$latestFileUrl" || {
475+
echo -e "${RED}Failed to download the latestFile. Please check your internet connection and try again.${RESET}"
476+
}
477+
echo -e "${RED}Ubuntu 24.04 LTS is not currently supported by this installation script.${RESET}"
478+
echo -e "${YELLOW}Please use an earlier version of Ubuntu for the time being. Check back later for updates.${RESET}"
479+
exit 1
480+
fi
481+
fi
474482
CURRENT_GLIBC_VERSION=$(ldd --version | grep "ldd" | awk '{print $NF}')
475483
echo "Current GLIBC version: $CURRENT_GLIBC_VERSION"
476484

0 commit comments

Comments
 (0)