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:
parent
c7eb4ace25
commit
79f5e7d827
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue