From c8f826343b4c13f7b6c588b0cfea1994b7d7b2eb Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 7 Nov 2017 18:41:01 +0000 Subject: [PATCH] Restart postgresql before creating database --- src/freedombone-app-pleroma | 1 + 1 file changed, 1 insertion(+) diff --git a/src/freedombone-app-pleroma b/src/freedombone-app-pleroma index a4bbc8a2..f729d980 100755 --- a/src/freedombone-app-pleroma +++ b/src/freedombone-app-pleroma @@ -244,6 +244,7 @@ function pleroma_create_database { fi sudo -u pleroma mix local.hex --force sudo -u pleroma mix deps.compile mimerl + systemctl restart postgresql sudo -u pleroma mix ecto.create --force if [ ! "$?" = "0" ]; then run_system_query_postgresql "ALTER USER pleroma NOSUPERUSER;"