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:
parent
3439592f1b
commit
d61e0e1197
1 changed files with 10 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue