Просмотр исходного кода

feat: update os check script to support Ubuntu 24.04 (#4483)

* feat: update os check to support Ubuntu 24.04
Dadang NH 1 год назад
Родитель
Сommit
f5603eb649
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      install/hst-install.sh

+ 3 - 3
install/hst-install.sh

@@ -9,7 +9,7 @@
 # Currently Supported Operating Systems:
 #
 # Debian 10, 11, 12
-# Ubuntu 20.04, 22.04
+# Ubuntu 20.04, 22.04, 24.04 LTS
 #
 # ======================================================== #
 
@@ -81,7 +81,7 @@ no_support_message() {
 	echo "Hestia Control Panel. Officially supported releases:"
 	echo "****************************************************"
 	echo "  Debian 10, 11, 12"
-	echo "  Ubuntu 20.04, 22.04 LTS"
+	echo "  Ubuntu 20.04, 22.04, 24.04 LTS"
 	# Commenting this out for now
 	# echo "  AlmaLinux, EuroLinux, Red Hat EnterPrise Linux, Rocky Linux 8,9"
 	echo ""
@@ -142,7 +142,7 @@ check_wget_curl() {
 
 # Check for supported operating system before proceeding with download
 # of OS-specific installer, and throw error message if unsupported OS detected.
-if [[ "$release" =~ ^(10|11|12|20.04|22.04)$ ]]; then
+if [[ "$release" =~ ^(10|11|12|20.04|22.04|24.04)$ ]]; then
 	check_wget_curl $*
 elif [[ -e "/etc/redhat-release" ]] && [[ "$release" =~ ^(8|9)$ ]]; then
 	check_wget_curl $*