Skip to content

Commit

Permalink
Added command to modify the td-agent.conf file to comment out '8888' …
Browse files Browse the repository at this point in the history
…port before starting the service
  • Loading branch information
Kavishree-Shanmugam committed Jun 29, 2018
1 parent 62f20c3 commit 457f7b7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion install-agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,8 @@ def install_fluentd(self):
self._add_proxy_for_curl_in_file(self.proxy, fluentd_file_name)
self._add_proxy_for_rpm_in_file(self.proxy, fluentd_file_name)
self._run_cmd("sh {0}".format(fluentd_file_name), shell=True)

self._run_cmd("yes | cp ./td-agent.conf /opt/td-agent/etc/td-agent/", shell=True)
self._run_cmd("yes | cp ./td-agent.conf /etc/td-agent/", shell=True)
cmd = "usermod -a -G adm td-agent"
print "Adding user td-agent to the group adm"
self._run_cmd(cmd, ignore_err=True, shell=True)
Expand Down

0 comments on commit 457f7b7

Please sign in to comment.