From 13d084195e5727de1e29c6fc22484a3dd7b65a42 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?C=C3=A9dric=20Moreau?= <cedric.moreau@monemprunt.com>
Date: Fri, 8 Apr 2022 18:26:04 +0200
Subject: [PATCH] fix(build): NodeJS requires HTTPS to be downloaded

---
 release/arch/arm/build-arm.sh   | 2 +-
 release/arch/linux/build-lin.sh | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/release/arch/arm/build-arm.sh b/release/arch/arm/build-arm.sh
index d7e983a2f..e00eb0199 100755
--- a/release/arch/arm/build-arm.sh
+++ b/release/arch/arm/build-arm.sh
@@ -55,7 +55,7 @@ echo "DebianVer: $DUNITER_DEB_VER"
 
 if [ ! -f "$DOWNLOADS/node-${NVER}-linux-${ARCH}.tar.gz" ]; then
   # Download Node.js and package it with the sources
-  wget http://nodejs.org/dist/${NVER}/node-${NVER}-linux-${ARCH}.tar.gz
+  wget https://nodejs.org/dist/${NVER}/node-${NVER}-linux-${ARCH}.tar.gz
   tar xzf node-${NVER}-linux-${ARCH}.tar.gz
 fi
 
diff --git a/release/arch/linux/build-lin.sh b/release/arch/linux/build-lin.sh
index bce1984ae..4078aad0b 100755
--- a/release/arch/linux/build-lin.sh
+++ b/release/arch/linux/build-lin.sh
@@ -109,7 +109,7 @@ rm -rf "${BIN}/"*.{deb,tar.gz}{,.desc} # Clean up
 # -----------
 
 cd "${DOWNLOADS}"
-curl -O http://nodejs.org/dist/${NVER}/node-${NVER}-linux-x64.tar.gz || exit 1
+curl -O https://nodejs.org/dist/${NVER}/node-${NVER}-linux-x64.tar.gz || exit 1
 tar xzf node-${NVER}-linux-x64.tar.gz || exit 1
 rm node-${NVER}-linux-x64.tar.gz
 
-- 
GitLab