Skip to content

Commit

Permalink
Fixed incorrect bash syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
dotneft committed Aug 21, 2023
1 parent 9bd19e0 commit a2cf923
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 28 deletions.
5 changes: 1 addition & 4 deletions Dockerfiles/agent2/alpine/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,8 @@ prepare_zbx_agent_config() {
else
update_config_var $ZBX_AGENT_CONFIG "ServerActive"
fi
<<<<<<< HEAD
=======
update_config_var $ZBX_AGENT_CONFIG "HeartbeatFrequency" "${ZBX_HEARTBEAT_FREQUENCY}"

update_config_var $ZBX_AGENT_CONFIG "ForceActiveChecksOnStart" "${ZBX_FORCEACTIVECHECKSONSTART}"
>>>>>>> d4f6f4946 (Fixed missing and incorrect variables)

if [ "${ZBX_ENABLEPERSISTENTBUFFER,,}" == "true" ]; then
update_config_var $ZBX_AGENT_CONFIG "EnablePersistentBuffer" "1"
Expand Down
5 changes: 1 addition & 4 deletions Dockerfiles/agent2/centos/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,8 @@ prepare_zbx_agent_config() {
else
update_config_var $ZBX_AGENT_CONFIG "ServerActive"
fi
<<<<<<< HEAD
=======
update_config_var $ZBX_AGENT_CONFIG "HeartbeatFrequency" "${ZBX_HEARTBEAT_FREQUENCY}"

update_config_var $ZBX_AGENT_CONFIG "ForceActiveChecksOnStart" "${ZBX_FORCEACTIVECHECKSONSTART}"
>>>>>>> d4f6f4946 (Fixed missing and incorrect variables)

if [ "${ZBX_ENABLEPERSISTENTBUFFER,,}" == "true" ]; then
update_config_var $ZBX_AGENT_CONFIG "EnablePersistentBuffer" "1"
Expand Down
5 changes: 1 addition & 4 deletions Dockerfiles/agent2/ol/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,8 @@ prepare_zbx_agent_config() {
else
update_config_var $ZBX_AGENT_CONFIG "ServerActive"
fi
<<<<<<< HEAD
=======
update_config_var $ZBX_AGENT_CONFIG "HeartbeatFrequency" "${ZBX_HEARTBEAT_FREQUENCY}"

update_config_var $ZBX_AGENT_CONFIG "ForceActiveChecksOnStart" "${ZBX_FORCEACTIVECHECKSONSTART}"
>>>>>>> d4f6f4946 (Fixed missing and incorrect variables)

if [ "${ZBX_ENABLEPERSISTENTBUFFER,,}" == "true" ]; then
update_config_var $ZBX_AGENT_CONFIG "EnablePersistentBuffer" "1"
Expand Down
5 changes: 1 addition & 4 deletions Dockerfiles/agent2/rhel/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,8 @@ prepare_zbx_agent_config() {
else
update_config_var $ZBX_AGENT_CONFIG "ServerActive"
fi
<<<<<<< HEAD
=======
update_config_var $ZBX_AGENT_CONFIG "HeartbeatFrequency" "${ZBX_HEARTBEAT_FREQUENCY}"

update_config_var $ZBX_AGENT_CONFIG "ForceActiveChecksOnStart" "${ZBX_FORCEACTIVECHECKSONSTART}"
>>>>>>> d4f6f4946 (Fixed missing and incorrect variables)

if [ "${ZBX_ENABLEPERSISTENTBUFFER,,}" == "true" ]; then
update_config_var $ZBX_AGENT_CONFIG "EnablePersistentBuffer" "1"
Expand Down
5 changes: 1 addition & 4 deletions Dockerfiles/agent2/ubuntu/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,8 @@ prepare_zbx_agent_config() {
else
update_config_var $ZBX_AGENT_CONFIG "ServerActive"
fi
<<<<<<< HEAD
=======
update_config_var $ZBX_AGENT_CONFIG "HeartbeatFrequency" "${ZBX_HEARTBEAT_FREQUENCY}"

update_config_var $ZBX_AGENT_CONFIG "ForceActiveChecksOnStart" "${ZBX_FORCEACTIVECHECKSONSTART}"
>>>>>>> d4f6f4946 (Fixed missing and incorrect variables)

if [ "${ZBX_ENABLEPERSISTENTBUFFER,,}" == "true" ]; then
update_config_var $ZBX_AGENT_CONFIG "EnablePersistentBuffer" "1"
Expand Down
5 changes: 1 addition & 4 deletions Dockerfiles/agent2/windows/docker-entrypoint.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,8 @@ function Prepare-Zbx-Agent-Config {
else {
Update-Config-Var $ZbxAgentConfig "ServerActive"
}
<<<<<<< HEAD
=======
Update-Config-Var $ZbxAgentConfig "HeartbeatFrequency" "$env:ZBX_HEARTBEAT_FREQUENCY"

Update-Config-Var $ZbxAgentConfig "ForceActiveChecksOnStart" "$env:ZBX_FORCEACTIVECHECKSONSTART"
>>>>>>> d4f6f4946 (Fixed missing and incorrect variables)

if ([string]::IsNullOrWhitespace($env:ZBX_ENABLEPERSISTENTBUFFER)) {
$env:ZBX_ENABLEPERSISTENTBUFFER="true"
Expand Down
4 changes: 0 additions & 4 deletions env_vars/.env_agent
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@
# ZBX_DEBUGLEVEL=3
# ZBX_ENABLEREMOTECOMMANDS=0 # Deprecated since 5.0.0
# ZBX_LOGREMOTECOMMANDS=0
<<<<<<< HEAD
=======
# ZBX_FORCEACTIVECHECKSONSTART=0 # Available since 6.0.2
# ZBX_HEARTBEAT_FREQUENCY=60 # Available since 6.2
>>>>>>> d4f6f4946 (Fixed missing and incorrect variables)
# ZBX_HOSTINTERFACE= # Available since 4.4.0
# ZBX_HOSTINTERFACEITEM= # Available since 4.4.0
# ZBX_SERVER_HOST=zabbix-server
Expand Down

0 comments on commit a2cf923

Please sign in to comment.