Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add service support for ubuntu #67

Merged
merged 1 commit into from
Aug 3, 2016
Merged

add service support for ubuntu #67

merged 1 commit into from
Aug 3, 2016

Conversation

brechsteiner
Copy link

No description provided.

@sabretus
Copy link

+1, need this too

@kenbreeman
Copy link
Contributor

I don't have a Ubuntu system to test on but it looks good to me

@kenbreeman kenbreeman merged commit 3a89be7 into hubspotdevops:master Aug 3, 2016
if $::operatingsystem == 'Debian' {
if versioncmp($::operatingsystemrelease, '8.0') > 0 {
if $::operatingsystem == 'Debian' or $::operatingsystem == 'Ubuntu' {
if versioncmp($::operatingsystemrelease, '8.0') > 0 and $::operatingsystem == 'Debian' {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this change does what you want, the inner if-statement is:

if versioncmp($::operatingsystemrelease, '8.0') > 0 and $::operatingsystem == 'Debian' {

which will never evaluate to true unless $::operatingsystem == 'Debian'.

I think these two if-statements should be merged into a single if-statement:

($::operatingsystem == 'Debian' and versioncmp($::operatingsystemrelease, '8.0') > 0) or $::operatingsystem == 'Ubuntu'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants