1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mastodon_ynh.git synced 2024-09-03 19:46:02 +02:00

[fix] upgrade ndeojs version

This commit is contained in:
magikcypress 2017-05-21 17:02:13 +02:00
parent c7eb4ace25
commit 79f5e7d827
No known key found for this signature in database
GPG key ID: 3B3C7CD61957AC9A

View file

@ -40,6 +40,14 @@ sudo systemctl stop mastodon-*.service
# Change owner of live folder
sudo chown -R $app: $final_path/live
# upgrade Node.js v4 to v6
node_version=$(nodejs --version)
if [[ $node_version =~ ^v4.*$ ]]; then
pushd /opt
curl -sL https://deb.nodesource.com/setup_6.x | sudo bash -
sudo apt-get -y install nodejs
fi
# Download Mastodon
sudo su - $app <<PULLCOMMANDS
pushd ~/live