mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-11-12 00:19:15 +00:00
Upgrade Node JS to v14.x
This commit is contained in:
parent
0b6fb7e487
commit
2f4109e2e9
|
@ -162,6 +162,9 @@ while true; do
|
|||
# Configure Dojo for MyNode
|
||||
sudo /usr/bin/mynode_gen_dojo_config.sh || MARK_DOJO_COMPLETE=0
|
||||
|
||||
# Fix for v1.12.0 (may need to remove later)
|
||||
sed -i "s/bash gcc g++ make python3/bash gcc g++ make python3 curl cmake/g" /mnt/hdd/mynode/dojo/docker/my-dojo/node/Dockerfile
|
||||
|
||||
# Run Dojo Install or Upgrade
|
||||
cd /mnt/hdd/mynode/dojo/docker/my-dojo
|
||||
INSTALL_PID=0
|
||||
|
|
|
@ -173,29 +173,28 @@ if ! skip_base_upgrades ; then
|
|||
echo $LNDMANAGE_VERSION > $LNDMANAGE_VERSION_FILE
|
||||
|
||||
# Update Node (not well tested, especially app re-install)
|
||||
# if [ -f /etc/apt/sources.list.d/nodesource.list ]; then
|
||||
# NODE_VERSION=11.x
|
||||
# CURRENT_NODE_VERSION=$(cat /etc/apt/sources.list.d/nodesource.list)
|
||||
# if [[ "$CURRENT_NODE_VERSION" != *"node_${NODE_VERSION}"* ]]; then
|
||||
# # Upgrade node
|
||||
# curl -sL https://deb.nodesource.com/setup_${NODE_VERSION} | bash -
|
||||
# apt-get install -y nodejs
|
||||
if [ -f /etc/apt/sources.list.d/nodesource.list ]; then
|
||||
CURRENT_NODE_VERSION=$(cat /etc/apt/sources.list.d/nodesource.list)
|
||||
if [[ "$CURRENT_NODE_VERSION" != *"node_${NODE_JS_VERSION}"* ]]; then
|
||||
# Upgrade node
|
||||
curl -sL https://deb.nodesource.com/setup_${NODE_JS_VERSION} | bash -
|
||||
apt-get install -y nodejs
|
||||
|
||||
# # Mark apps using node as needing re-install
|
||||
# rm -f /home/bitcoin/.mynode/lndhub_version
|
||||
# rm -f /home/bitcoin/.mynode/sphinxrelay_version
|
||||
# rm -f /home/bitcoin/.mynode/thunderhub_version
|
||||
# rm -f /home/bitcoin/.mynode/corsproxy_version
|
||||
# rm -f /home/bitcoin/.mynode/rtl_version
|
||||
# rm -f /home/bitcoin/.mynode/caravan_version
|
||||
# rm -f /home/bitcoin/.mynode/btcrpcexplorer_version
|
||||
# rm -f /home/bitcoin/.mynode/bos_version
|
||||
# else
|
||||
# echo "Node version match"
|
||||
# fi
|
||||
# else
|
||||
# echo "No node apt sources file?"
|
||||
# fi
|
||||
# Mark apps using node as needing re-install
|
||||
rm -f /home/bitcoin/.mynode/lndhub_version
|
||||
rm -f /home/bitcoin/.mynode/sphinxrelay_version
|
||||
rm -f /home/bitcoin/.mynode/thunderhub_version
|
||||
rm -f /home/bitcoin/.mynode/corsproxy_version
|
||||
rm -f /home/bitcoin/.mynode/rtl_version
|
||||
rm -f /home/bitcoin/.mynode/caravan_version
|
||||
rm -f /home/bitcoin/.mynode/btcrpcexplorer_version
|
||||
rm -f /home/bitcoin/.mynode/bos_version
|
||||
else
|
||||
echo "Node version match"
|
||||
fi
|
||||
else
|
||||
echo "No node apt sources file?"
|
||||
fi
|
||||
|
||||
# Install Docker
|
||||
if [ ! -f /usr/bin/docker ]; then
|
||||
|
|
|
@ -129,6 +129,8 @@ WEBSSH2_VERSION="v0.2.10-0"
|
|||
WEBSSH2_VERSION_FILE=/mnt/hdd/mynode/settings/webssh2_version
|
||||
WEBSSH2_LATEST_VERSION_FILE=/mnt/hdd/mynode/settings/webssh2_version_latest
|
||||
|
||||
NODE_JS_VERSION="14.x"
|
||||
|
||||
# Check for override files
|
||||
if [ -f /usr/share/mynode/mynode_app_versions_custom.sh ]; then
|
||||
source /usr/share/mynode/mynode_app_versions_custom.sh
|
||||
|
|
|
@ -263,7 +263,7 @@ fi
|
|||
|
||||
# Install node
|
||||
if [ ! -f /tmp/installed_node ]; then
|
||||
curl -sL https://deb.nodesource.com/setup_11.x | bash -
|
||||
curl -sL https://deb.nodesource.com/setup_$NODE_JS_VERSION | bash -
|
||||
apt-get install -y nodejs
|
||||
touch /tmp/installed_node
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue
Block a user