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:
dependencies:
- postgresql
sles-12
sles-12:
dependencies:
- postgresql
before:

View file

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