From 3ec2ba3a43c2c9a83bccd566f8cf4124f6e2ada6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bauer?= Date: Tue, 25 Oct 2016 15:51:46 +0200 Subject: [PATCH] pkgr changes --- .pkgr.yml | 2 -- contrib/packager.io/postinstall.sh | 17 ++++++++++++----- 2 files changed, 12 insertions(+), 7 deletions(-) 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