diff --git a/.pkgr.yml b/.pkgr.yml index 64791fb2e..4984a9990 100644 --- a/.pkgr.yml +++ b/.pkgr.yml @@ -14,11 +14,9 @@ targets: - postgresql-devel debian-8: dependencies: - - nginx - postgresql ubuntu-16.04: dependencies: - - nginx - postgresql before: - uname -a diff --git a/contrib/packager.io/postinstall.sh b/contrib/packager.io/postinstall.sh index c2fc364f2..a725a6be9 100755 --- a/contrib/packager.io/postinstall.sh +++ b/contrib/packager.io/postinstall.sh @@ -1,13 +1,20 @@ #!/bin/bash - +# +# packager.io postinstall script +# set -ex # create init scripts /usr/bin/zammad scale web=1 websocket=1 worker=1 +# stop zammad +systemctl stop zammad + +# db migration +if /usr/bin/zammad config:get DATABASE_URL ; then + /usr/bin/zammad run rake db:migrate +fi + # start zammad -systemctl start zammad - -# start nginx -systemctl start nginx +systemctl restart zammad