diff --git a/.pkgr.yml b/.pkgr.yml index b01e6fe15..1a1429b9e 100644 --- a/.pkgr.yml +++ b/.pkgr.yml @@ -18,7 +18,7 @@ targets: ubuntu-16.04: dependencies: - postgresql - sles-12 + sles-12: dependencies: - postgresql before: diff --git a/Gemfile.local from .pkgr.yml - packager.io complains about double use b/Gemfile.local from .pkgr.yml - packager.io complains about double use deleted file mode 100644 index e69de29bb..000000000 diff --git a/contrib/pkgr-postinstall.sh b/contrib/pkgr-postinstall.sh index 7469a5a48..b5f9e005e 100755 --- a/contrib/pkgr-postinstall.sh +++ b/contrib/pkgr-postinstall.sh @@ -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