Skip to content

Commit

Permalink
add sles 12 to pkgr.yml and check for used initservioce in pkgr-posti…
Browse files Browse the repository at this point in the history
…nstall.sh fixes
  • Loading branch information
André Bauer committed Oct 27, 2016
1 parent ff59c92 commit 159d1fc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .pkgr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ targets:
ubuntu-16.04:
dependencies:
- postgresql
sles-12
sles-12:
dependencies:
- postgresql
before:
Expand Down
Empty file.
11 changes: 4 additions & 7 deletions contrib/pkgr-postinstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 159d1fc

Please sign in to comment.