exec migrations after package update
This commit is contained in:
parent
6f6b12b5aa
commit
d81355f9e8
1 changed files with 10 additions and 0 deletions
10
packaging/hooks/postinstall.sh
Normal file
10
packaging/hooks/postinstall.sh
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
#!/bin/bash
|
||||||
|
set -e
|
||||||
|
|
||||||
|
if zammad config:get DATABASE_URL ; then
|
||||||
|
zammad run rake db:migrate
|
||||||
|
fi
|
||||||
|
|
||||||
|
touch tmp/restart.txt
|
||||||
|
|
||||||
|
exit 0
|
Loading…
Reference in a new issue