Skip to content
Snippets Groups Projects
Commit da9e71db authored by Cédric Moreau's avatar Cédric Moreau Committed by Hugo Trentesaux
Browse files

fix(build): NodeJS requires HTTPS to be downloaded

parent 6344dd34
No related branches found
No related tags found
No related merge requests found
...@@ -53,7 +53,7 @@ echo "DebianVer: $DUNITER_DEB_VER" ...@@ -53,7 +53,7 @@ echo "DebianVer: $DUNITER_DEB_VER"
if [ ! -f "$DOWNLOADS/node-${NVER}-linux-${ARCH}.tar.gz" ]; then if [ ! -f "$DOWNLOADS/node-${NVER}-linux-${ARCH}.tar.gz" ]; then
# Download Node.js and package it with the sources # 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 tar xzf node-${NVER}-linux-${ARCH}.tar.gz
fi fi
......
...@@ -157,10 +157,7 @@ rm -rf "${BIN}/"*.{deb,tar.gz}{,.desc} # Clean up ...@@ -157,10 +157,7 @@ rm -rf "${BIN}/"*.{deb,tar.gz}{,.desc} # Clean up
# ----------- # -----------
cd "${DOWNLOADS}" cd "${DOWNLOADS}"
curl -O https://dl.nwjs.io/${NW_RELEASE}/${NW_GZ} || exit 1 curl -O https://nodejs.org/dist/${NVER}/node-${NVER}-linux-x64.tar.gz || exit 1
tar xzf ${NW_GZ} || exit 1
rm ${NW_GZ}
curl -O http://nodejs.org/dist/${NVER}/node-${NVER}-linux-x64.tar.gz || exit 1
tar xzf 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 rm node-${NVER}-linux-x64.tar.gz
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment