Restart postgresql before creating database

This commit is contained in:
Bob Mottram 2017-11-07 18:41:01 +00:00
parent d2bef30573
commit c8f826343b
1 changed files with 1 additions and 0 deletions

View File

@ -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;"