*/init.d/pleroma: run migrations before starting
This commit is contained in:
parent
a1247220f3
commit
9bbeeeb428
3 changed files with 13 additions and 0 deletions
|
|
@ -24,3 +24,9 @@ depend() {
|
|||
want nginx
|
||||
need postgresql
|
||||
}
|
||||
|
||||
start_pre() {
|
||||
ebegin "running migrations if any"
|
||||
su -s /bin/sh -c '/opt/pleroma/bin/pleroma_ctl migrate' -l "${command_user}"
|
||||
eend "$?"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue