-
Notifications
You must be signed in to change notification settings - Fork 191
Fix log_dir_group for Ubuntu 14.04+ #83
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,12 +17,8 @@ | |
| # author: Dominik Richter | ||
| # author: Patrick Muench | ||
|
|
||
| log_dir_group = case os[:family] | ||
| when 'debian', 'redhat', 'fedora' | ||
| 'root' | ||
| when 'ubuntu' | ||
| os[:release] == '14.04' ? 'syslog' : 'root' | ||
| end | ||
| log_dir_group = 'root' | ||
| log_dir_group = 'syslog' if os.name == 'ubuntu' && os[:release].to_i >= 14 | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @chris-rock I'm using
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I thought easiest just to override default of
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I agree with you. Thank you for making it simpler!
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we could remove version check completely as it does not really make sense (and ubuntu 16.04 has group 'syslog' as well) log_dir_group = os.name == 'ubuntu'? 'syslog' : 'root' |
||
| login_defs_umask = attribute('login_defs_umask', default: os.redhat? ? '077' : '027', description: 'Default umask to set in login.defs') | ||
| login_defs_passmaxdays = attribute('login_defs_passmaxdays', default: '60', description: 'Default password maxdays to set in login.defs') | ||
| login_defs_passmindays = attribute('login_defs_passmindays', default: '7', description: 'Default password mindays to set in login.defs') | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could we just switch to use
os.nameinstead?