fix(openrc): preserve migration execution context
This commit is contained in:
parent
9bbeeeb428
commit
8943ab8140
2 changed files with 4 additions and 6 deletions
|
|
@ -39,7 +39,8 @@ depend() {
|
|||
|
||||
start_pre() {
|
||||
ebegin "running migrations if any"
|
||||
su -s /bin/sh -c '/usr/bin/mix ecto.migrate' -l "${command_user}"
|
||||
su -s /bin/sh -c "cd \"${directory}\" && exec /usr/bin/mix ecto.migrate" \
|
||||
"${command_user%%:*}"
|
||||
eend "$?"
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue