aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author__cyp <cyp@rouquin.me>2017-05-06 22:55:50 +0200
committerGitHub <noreply@github.com>2017-05-06 22:55:50 +0200
commitb85c9cb43d402baf3310f39732dbeee34dec47e3 (patch)
tree3e2f6ecbe9a038689cbd2733da4d82ad8fdb038e
parentb25cc8f544457b6ea7eed56d30c211947b8baa12 (diff)
parent04fc6dcc4be964f55c52016f1b912fb093fd542f (diff)
downloadmastodon_ynh-b85c9cb43d402baf3310f39732dbeee34dec47e3.tar.gz
mastodon_ynh-b85c9cb43d402baf3310f39732dbeee34dec47e3.tar.bz2
mastodon_ynh-b85c9cb43d402baf3310f39732dbeee34dec47e3.zip
Merge pull request #22 from nemsia/patch-1
[fix] Upgrade from 1.3.3
-rw-r--r--scripts/upgrade4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/upgrade b/scripts/upgrade
index ab4bf58..b5d1b31 100644
--- a/scripts/upgrade
+++ b/scripts/upgrade
@@ -37,10 +37,14 @@ sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/$app.conf
# Stop Mastodon Services
sudo systemctl stop mastodon-*.service
+# Change owner of live folder
+sudo chown -R $app: $final_path/live
+
# Download Mastodon
sudo su - $app <<PULLCOMMANDS
pushd ~/live
git fetch
+git reset --hard origin/master
git pull https://github.com/tootsuite/mastodon.git master
PULLCOMMANDS