Skip to content

Commit

Permalink
Merge pull request #291 from shaunrampersad/fix_264
Browse files Browse the repository at this point in the history
Fixes for #264
  • Loading branch information
bastelfreak authored Oct 11, 2016
2 parents 66b5919 + 26126fe commit b02f3eb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions spec/defines/startup_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
it do
should contain_file('/etc/init.d/zabbix-agent').with(
ensure: 'file',
content: %r{OPTS="-c /something"}
content: %r{OPTS="/something"}
)
end
else
Expand Down Expand Up @@ -122,7 +122,7 @@
it do
should contain_file('/etc/init.d/zabbix-server').with(
ensure: 'file',
content: %r{OPTS="-c /something"}
content: %r{OPTS="/something"}
)
end
else
Expand Down
4 changes: 2 additions & 2 deletions templates/zabbix-agent-redhat.init.erb
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@

RETVAL=0
prog="Zabbix Agent"
ZABBIX_BIN="/usr/local/sbin/zabbix_agentd"
OPTS="-c <%= @agent_configfile_path %>"
ZABBIX_BIN="$(type -P zabbix_agentd)"
OPTS="<%= @agent_configfile_path %>"

if [ ! -x ${ZABBIX_BIN} ] ; then
echo -n "${ZABBIX_BIN} not installed! "
Expand Down
4 changes: 2 additions & 2 deletions templates/zabbix-server-redhat.init.erb
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@

RETVAL=0
prog="Zabbix Server"
ZABBIX_BIN="/usr/local/sbin/zabbix_server"
OPTS="-c <%= @server_configfile_path %>"
ZABBIX_BIN="$(type -P zabbix_server)"
OPTS="<%= @server_configfile_path %>"

if [ ! -x ${ZABBIX_BIN} ] ; then
echo -n "${ZABBIX_BIN} not installed! "
Expand Down

0 comments on commit b02f3eb

Please sign in to comment.