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

Merge remote-tracking branch 'refs/remotes/YunoHost-Apps/master'

This commit is contained in:
nemsia 2017-05-28 17:24:04 +02:00
commit 30c19b5b1c

View file

@ -40,14 +40,6 @@ 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