1
0
mirror of https://github.com/krislamo/graylog_demo synced 2024-12-16 06:50:35 +00:00

Prevent error if /var/log/containers folder exists

This commit is contained in:
Kris Lamoureux 2020-03-19 11:48:47 -04:00
parent e509d3bad6
commit 79980fde84
Signed by: kris
GPG Key ID: A30022791E1719A4

2
Vagrantfile vendored
View File

@ -56,7 +56,7 @@ Vagrant.configure("2") do |config|
yum install -y td-agent yum install -y td-agent
td-agent-gem install fluent-plugin-gelf-hs gelf td-agent-gem install fluent-plugin-gelf-hs gelf
cp /vagrant/td-agent.conf /etc/td-agent/td-agent.conf cp /vagrant/td-agent.conf /etc/td-agent/td-agent.conf
mkdir /var/log/containers mkdir -p /var/log/containers
chown -R td-agent:td-agent /var/log/containers chown -R td-agent:td-agent /var/log/containers
chmod -R 755 /var/log chmod -R 755 /var/log
systemctl restart td-agent systemctl restart td-agent