mirror of
https://github.com/YunoHost-Apps/mastodon_ynh.git
synced 2024-09-03 19:46:02 +02:00
[fix] Upgrade on tagged release
This commit is contained in:
parent
e245bb18e4
commit
58661b14d2
1 changed files with 2 additions and 1 deletions
|
@ -38,8 +38,9 @@ sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/$app.conf
|
|||
sudo systemctl stop mastodon-*.service
|
||||
|
||||
# Update Mastodon
|
||||
pushd /opt/mastodon/live
|
||||
sudo su - $app <<COMMANDS
|
||||
cd live
|
||||
pushd ~/live
|
||||
git fetch
|
||||
git pull https://github.com/tootsuite/mastodon.git master
|
||||
git checkout $(git tag | tail -n 1)
|
||||
|
|
Loading…
Reference in a new issue