Skip to content

Commit

Permalink
Merge pull request #4 from gnubila-france/fix_rhel_version_test
Browse files Browse the repository at this point in the history
Fix rhel version detection.
  • Loading branch information
frankiethekneeman committed Sep 3, 2015
2 parents d165143 + cb07725 commit cbb65b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

$serviceFile = $package_type ? {
'rpm' => $::operatingsystemrelease ? {
/(5.*|6.*)/ => '/etc/init.d/gitlab-ci-multi-runner',
/^(5.*|6.*)/ => '/etc/init.d/gitlab-ci-multi-runner',
default => '/etc/systemd/system/gitlab-runner.service'
},
'deb' => '/etc/init/gitlab-runner.conf',
Expand All @@ -32,7 +32,7 @@

$version = $::osfamily ? {
'redhat' => $::operatingsystemrelease ? {
/(5.*|6.*)/ => '0.4.2-1',
/^(5.*|6.*)/ => '0.4.2-1',
default => 'latest'
},
'debian' => 'latest',
Expand Down

0 comments on commit cbb65b6

Please sign in to comment.