aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authornemsia <nemsia@nemsia.org>2018-05-28 14:31:49 +0200
committerGitHub <noreply@github.com>2018-05-28 14:31:49 +0200
commit7a3313b7cf14937bbc2b5bb6c1a7a951f0983d9c (patch)
treecd3c37aadec11521fbc12296f83c0b545c5faa25 /scripts
parent27505a57d71b4d71ca054e6e5392ae6082e49899 (diff)
downloadmastodon_ynh-7a3313b7cf14937bbc2b5bb6c1a7a951f0983d9c.tar.gz
mastodon_ynh-7a3313b7cf14937bbc2b5bb6c1a7a951f0983d9c.tar.bz2
mastodon_ynh-7a3313b7cf14937bbc2b5bb6c1a7a951f0983d9c.zip
Postgres fix (#84)
* Restart postgresql on upgrade
Diffstat (limited to 'scripts')
-rw-r--r--scripts/upgrade2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/upgrade b/scripts/upgrade
index 1ea88ca..2c27ab6 100644
--- a/scripts/upgrade
+++ b/scripts/upgrade
@@ -87,8 +87,10 @@ $final_path/.rbenv/versions/2.5.1/bin/bundle install --deployment --without deve
#yarn install --pure-lockfile
MCOMMANDS
+# Install package with yarn and restart postgresql
pushd $final_path/live
yarn install --pure-lockfile
+systemctl restart postgresql
popd
# Apply Mastodon upgrade