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
|
- postgresql-devel
|
||||||
debian-8:
|
debian-8:
|
||||||
dependencies:
|
dependencies:
|
||||||
- nginx
|
|
||||||
- postgresql
|
- postgresql
|
||||||
ubuntu-16.04:
|
ubuntu-16.04:
|
||||||
dependencies:
|
dependencies:
|
||||||
- nginx
|
|
||||||
- postgresql
|
- postgresql
|
||||||
before:
|
before:
|
||||||
- uname -a
|
- uname -a
|
||||||
|
|
|
@ -1,13 +1,20 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
#
|
||||||
|
# packager.io postinstall script
|
||||||
|
#
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
# create init scripts
|
# create init scripts
|
||||||
/usr/bin/zammad scale web=1 websocket=1 worker=1
|
/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
|
# start zammad
|
||||||
systemctl start zammad
|
systemctl restart zammad
|
||||||
|
|
||||||
# start nginx
|
|
||||||
systemctl start nginx
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue