add sles 12 to pkgr.yml and check for used initservioce in pkgr-postinstall.sh fixes
This commit is contained in:
parent
ff59c925e1
commit
159d1fc8ed
3 changed files with 5 additions and 8 deletions
|
@ -18,7 +18,7 @@ targets:
|
|||
ubuntu-16.04:
|
||||
dependencies:
|
||||
- postgresql
|
||||
sles-12
|
||||
sles-12:
|
||||
dependencies:
|
||||
- postgresql
|
||||
before:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue