casecmp returns a value that is always true
Last if was always evaluated to true, no matter what is the content of @osfamily. (A value is always evaluated to true in ruby).
This commit is contained in:
Родитель
115e35820d
Коммит
a074c00ca8
|
@ -6,7 +6,7 @@ RSYSLOGD_OPTIONS="-c4"
|
|||
<% else -%>
|
||||
RSYSLOGD_OPTIONS=""
|
||||
<% end -%>
|
||||
<% if @osfamily.casecmp('redhat') -%>
|
||||
<% if @osfamily.casecmp('redhat') == 0 -%>
|
||||
# CentOS, RedHat, Fedora
|
||||
SYSLOGD_OPTIONS="${RSYSLOGD_OPTIONS}"
|
||||
<% end -%>
|
||||
|
|
Загрузка…
Ссылка в новой задаче