aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scripts/restore4
-rw-r--r--scripts/upgrade2
2 files changed, 4 insertions, 2 deletions
diff --git a/scripts/restore b/scripts/restore
index 70b876b..3f63380 100644
--- a/scripts/restore
+++ b/scripts/restore
@@ -70,6 +70,8 @@ sudo cp -a ./sources/. "$final_path"
# Set permissions
sudo chown -R $app: "$final_path"
+sudo chmod -R a+rx /home/yunohost.backup/tmp
+
sudo ls -alh "$final_path"
@@ -131,4 +133,4 @@ sudo yunohost service add mastodon-sidekiq
sudo yunohost service add mastodon-streaming
# Reload services
-sudo systemctl reload nginx \ No newline at end of file
+sudo systemctl reload nginx
diff --git a/scripts/upgrade b/scripts/upgrade
index 07b3ee7..7dad333 100644
--- a/scripts/upgrade
+++ b/scripts/upgrade
@@ -39,7 +39,7 @@ sudo systemctl stop mastodon-*.service
# Update Mastodon
sudo su - $app <<COMMANDS
-pushd ~/live
+cd live
git fetch
git pull https://github.com/tootsuite/mastodon.git master
git checkout $(git tag | tail -n 1)