From dc09158a26fa602ab9313908e16f69e3065a7a2a Mon Sep 17 00:00:00 2001 From: MichaIng <28480705+MichaIng@users.noreply.github.com> Date: Thu, 2 May 2019 23:12:26 +0200 Subject: [PATCH] v6.23 + DietPi-Software | Node.js: Fix broken install on ARMv6 since Node 12 does not support it any more: https://github.com/MichaIng/DietPi/issues/2755 --- dietpi/dietpi-software | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/dietpi/dietpi-software b/dietpi/dietpi-software index e15349e146..f58244e457 100644 --- a/dietpi/dietpi-software +++ b/dietpi/dietpi-software @@ -6677,9 +6677,12 @@ Pin-Priority: -1' > /etc/apt/preferences.d/dietpi-docker_fix INSTALL_URL_ADDRESS='https://raw.githubusercontent.com/taaem/nodejs-linux-installer/master/node-install.sh' G_CHECK_URL "$INSTALL_URL_ADDRESS" - wget "$INSTALL_URL_ADDRESS" -O node_install.sh - chmod +x node_install.sh + wget "$INSTALL_URL_ADDRESS" + # ARMv6 workaround: https://github.com/MichaIng/DietPi/issues/2755 + (( $G_HW_ARCH == 1 )) && sed -i 's|nodejs.org/dist/latest/|nodejs.org/dist/latest-v11.x/|g' node_install.sh + mkdir -p /usr/local # failsafe + chmod +x node_install.sh ./node_install.sh rm node_install.sh