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

[fix] add additional package for release

This commit is contained in:
nemsia 2017-05-21 17:20:05 +02:00
parent 3439592f1b
commit d61e0e1197

View file

@ -55,11 +55,16 @@ pushd ~/live
git checkout $(git tag | tail -n 1)
SWITCHCOMMANDS
# Upgrade Node.js
pushd /opt
curl -sL https://deb.nodesource.com/setup_6.x | sudo bash -
sudo apt-get install -y nodejs
popd
# 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
# add additional package for release 1.4
ynh_package_install pkg-config libprotobuf-dev protobuf-compiler
# Apply Mastodon upgrade
sudo su - $app <<COMMANDS