mirror of
https://github.com/YunoHost-Apps/mastodon_ynh.git
synced 2024-09-03 19:46:02 +02:00
[enh] Checkout 1.4
This commit is contained in:
parent
0a8d567983
commit
0dc9b383a7
1 changed files with 2 additions and 4 deletions
|
@ -40,7 +40,7 @@ sudo systemctl stop mastodon-*.service
|
||||||
# Change owner of live folder
|
# Change owner of live folder
|
||||||
sudo chown -R $app: $final_path/live
|
sudo chown -R $app: $final_path/live
|
||||||
|
|
||||||
# upgrade Node.js v4 to v6
|
# upgrade Node.js v4 to v6
|
||||||
node_version=$(nodejs --version)
|
node_version=$(nodejs --version)
|
||||||
if [[ $node_version =~ ^v4.*$ ]]; then
|
if [[ $node_version =~ ^v4.*$ ]]; then
|
||||||
pushd /opt
|
pushd /opt
|
||||||
|
@ -58,11 +58,9 @@ PULLCOMMANDS
|
||||||
|
|
||||||
# Switch branch to tagged release
|
# Switch branch to tagged release
|
||||||
cd $final_path/live
|
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
|
sudo su - $app <<SWITCHCOMMANDS
|
||||||
pushd ~/live
|
pushd ~/live
|
||||||
git checkout $version
|
git checkout $(git tag | tail -n 1)
|
||||||
SWITCHCOMMANDS
|
SWITCHCOMMANDS
|
||||||
|
|
||||||
# upgrade Node.js v4 to v6
|
# upgrade Node.js v4 to v6
|
||||||
|
|
Loading…
Add table
Reference in a new issue