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:
|
ubuntu-16.04:
|
||||||
dependencies:
|
dependencies:
|
||||||
- postgresql
|
- postgresql
|
||||||
sles-12
|
sles-12:
|
||||||
dependencies:
|
dependencies:
|
||||||
- postgresql
|
- postgresql
|
||||||
before:
|
before:
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue