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

Revert "Upgrade and install from 1.4"

This reverts commit f87651dc4d.
This commit is contained in:
nemsia 2017-05-26 21:18:22 +02:00
parent c11dea6e72
commit d5009a41a7
2 changed files with 6 additions and 2 deletions

View file

@ -95,9 +95,11 @@ CLONECOMMANDS
# Switch branch to tagged release
cd $final_path/live
url=$(curl -s https://api.github.com/repos/tootsuite/mastodon/releases/latest | sort -r | head -1 | cut -d\" -f4)
version=$(echo $url | cut -d/ -f8)
sudo su - $app <<SWITCHCOMMANDS
pushd ~/live
git checkout $(git tag | tail -n 1)
git checkout $version
SWITCHCOMMANDS
# Be king rewind (/var/cache/yunohost/from_file/scripts)

View file

@ -58,9 +58,11 @@ PULLCOMMANDS
# Switch branch to tagged release
cd $final_path/live
url=$(curl -s https://api.github.com/repos/tootsuite/mastodon/releases/latest | sort -r | head -1 | cut -d\" -f4)
version=$(echo $url | cut -d/ -f8)
sudo su - $app <<SWITCHCOMMANDS
pushd ~/live
git checkout $(git tag | tail -n 1)
git checkout $version
SWITCHCOMMANDS
# upgrade Node.js v4 to v6