add sles 12 to pkgr.yml and check for used initservioce in pkgr-postinstall.sh fixes

This commit is contained in:
André Bauer 2016-10-27 13:50:18 +02:00
parent ff59c925e1
commit 159d1fc8ed
3 changed files with 5 additions and 8 deletions

View file

@ -18,7 +18,7 @@ targets:
ubuntu-16.04: ubuntu-16.04:
dependencies: dependencies:
- postgresql - postgresql
sles-12 sles-12:
dependencies: dependencies:
- postgresql - postgresql
before: before:

View file

@ -10,13 +10,10 @@ DB="zammad_production"
DB_USER="zammad" DB_USER="zammad"
# check which init system is used # check which init system is used
SYSTEMD="$(which systemd)" if [ -n "$(which initctl)" ]; then
UPSTART="$(which initctl)" INIT_CMD="initctl"
elif [ -n "$(which systemctl)" ]; then
if [ -n ${UPSTART} ]; then INIT_CMD="systemctl"
INIT_COMMAND="initctl"
elif [ -n ${SYSTEMD} ]; then
INIT_CMD="systemd"
else else
function sysvinit () { function sysvinit () {
service $2 $1 service $2 $1