Restart postgresql before creating database
This commit is contained in:
parent
d2bef30573
commit
c8f826343b
|
@ -244,6 +244,7 @@ function pleroma_create_database {
|
||||||
fi
|
fi
|
||||||
sudo -u pleroma mix local.hex --force
|
sudo -u pleroma mix local.hex --force
|
||||||
sudo -u pleroma mix deps.compile mimerl
|
sudo -u pleroma mix deps.compile mimerl
|
||||||
|
systemctl restart postgresql
|
||||||
sudo -u pleroma mix ecto.create --force
|
sudo -u pleroma mix ecto.create --force
|
||||||
if [ ! "$?" = "0" ]; then
|
if [ ! "$?" = "0" ]; then
|
||||||
run_system_query_postgresql "ALTER USER pleroma NOSUPERUSER;"
|
run_system_query_postgresql "ALTER USER pleroma NOSUPERUSER;"
|
||||||
|
|
Loading…
Reference in New Issue