Quellcode durchsuchen

Updates Node.js source and fixes package upgrade

Updates the Node.js installation source to version 24.x.

The package upgrade process in the install script is modified to
display output directly instead of running in the background.
Jaap Marcus vor 10 Monaten
Ursprung
Commit
b675e0f9de
2 geänderte Dateien mit 13 neuen und 10 gelöschten Zeilen
  1. 12 9
      install/hst-install-debian.sh
  2. 1 1
      src/hst_autocompile.sh

+ 12 - 9
install/hst-install-debian.sh

@@ -889,22 +889,25 @@ echo
 # Updating system
 echo -ne "Updating currently installed packages, please wait... "
 apt-get -qq update
-apt-get -y upgrade >> $LOG &
-BACK_PID=$!
+apt-get -y upgrade
+
+# For now don't hide the out put
+#>> $LOG &
+#BACK_PID=$!
 
 # Check if package installation is done, print a spinner
-spin_i=1
-while kill -0 $BACK_PID > /dev/null 2>&1; do
-	printf "\b${spinner:spin_i++%${#spinner}:1}"
-	sleep 0.5
-done
+#spin_i=1
+#while kill -0 $BACK_PID > /dev/null 2>&1; do
+#	printf "\b${spinner:spin_i++%${#spinner}:1}"
+#	sleep 0.5
+#done
 
 # Do a blank echo to get the \n back
 echo
 
 # Check Installation result
-wait $BACK_PID
-check_result $? 'apt-get upgrade failed'
+#wait $BACK_PID
+#check_result $? 'apt-get upgrade failed'
 
 #----------------------------------------------------------#
 #                         Backup                           #

+ 1 - 1
src/hst_autocompile.sh

@@ -249,7 +249,7 @@ if [ "$dontinstalldeps" != 'true' ]; then
 	codename="$(lsb_release -s -c)"
 
 	if [ -z $(which "node") ]; then
-		curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
+		curl -fsSL https://deb.nodesource.com/setup_24.x | bash -
 	fi
 
 	echo "Installing Node.js..."