pkgr changes
This commit is contained in:
parent
3610ed3bcc
commit
3ec2ba3a43
2 changed files with 12 additions and 7 deletions
|
@ -14,11 +14,9 @@ targets:
|
|||
- postgresql-devel
|
||||
debian-8:
|
||||
dependencies:
|
||||
- nginx
|
||||
- postgresql
|
||||
ubuntu-16.04:
|
||||
dependencies:
|
||||
- nginx
|
||||
- postgresql
|
||||
before:
|
||||
- uname -a
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue