Unverified Commit ed1211ba authored by Pavel Ševčík's avatar Pavel Ševčík
Browse files

Use Node.js LTS instead of bleeding edge

parent 74ed2a1d
......@@ -28,7 +28,7 @@ declare -A package_dependencies=(
[docker-compose]=docker-compose
[ufw]=ufw
[rsync]=rsync
[node]=nodejs
[node]=nodejs-lts-fermium
[npm]=npm
[jq]=jq
[pipenv]=python-pipenv
......
......@@ -39,6 +39,7 @@ _main() {
test -f "$HOME"/.config/RoninDojo/data/updates/16-* || _update_16 # Fix any existing specter installs that are missing gcc dependency
test -f "$HOME"/.config/RoninDojo/data/updates/17-* || _update_17 # Uninstall legacy Ronin UI
test -f "$HOME"/.config/RoninDojo/data/updates/18-* || _update_18 # Update docker-bitcoind.conf settings for existing users
test -f "$HOME"/.config/RoninDojo/data/updates/19-* || _update_19 # Uninstall bleeding edge Node.js and install LTS Node.js
# Create symbolic link for main ronin script
if [ ! -h /usr/local/bin/ronin ]; then
......
......@@ -359,4 +359,13 @@ _update_18() {
# Finalize
touch "$HOME"/.config/RoninDojo/data/updates/18-"$(date +%m-%d-%Y)"
fi
}
\ No newline at end of file
}
# Uninstall bleeding edge Node.js and install LTS Node.js instead
_update_19() {
sudo pacman -R --noconfirm --cascade nodejs 2>/dev/null
sudo pacman -S --noconfirm --quiet nodejs-lts-fermium npm
# Finalize
touch "$HOME"/.config/RoninDojo/data/updates/19-"$(date +%m-%d-%Y)"
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment