diff options
| author | magikcypress <cyp@rouquin.me> | 2017-05-21 17:48:52 +0200 |
|---|---|---|
| committer | magikcypress <cyp@rouquin.me> | 2017-05-21 17:48:52 +0200 |
| commit | e52a9dcb50bc05549d73f2b7c030c6fbf22604a5 (patch) | |
| tree | 2eae707246b68e055a19ee0fb7117c9aab050166 /scripts | |
| parent | 79f5e7d827a39c116522b5d57311962edb238f4c (diff) | |
| download | mastodon_ynh-e52a9dcb50bc05549d73f2b7c030c6fbf22604a5.tar.gz mastodon_ynh-e52a9dcb50bc05549d73f2b7c030c6fbf22604a5.tar.bz2 mastodon_ynh-e52a9dcb50bc05549d73f2b7c030c6fbf22604a5.zip | |
[fix] Install lastest release
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/install | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/install b/scripts/install index ebe4569..1634c52 100644 --- a/scripts/install +++ b/scripts/install @@ -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) |
