Create and chown /etc/heka directory

This directory is needed for kolla-mesos to save config files
there.

Change-Id: Ia9810061d370bc600dfffeb33a4d4402c423e3fc
Closes-Bug: 1567437
This commit is contained in:
Michal Rostecki 2016-04-07 15:00:26 +02:00
parent a7dbbcf952
commit 2069d7562c
1 changed files with 3 additions and 2 deletions

View File

@ -5,7 +5,8 @@ MAINTAINER {{ maintainer }}
RUN yum -y install https://github.com/mozilla-services/heka/releases/download/v0.10.0/heka-0_10_0-linux-amd64.rpm \
&& yum clean all \
&& useradd --user-group heka
&& useradd --user-group heka \
&& mkdir /etc/heka
{% elif base_distro in ['ubuntu'] %}
@ -25,7 +26,7 @@ COPY extend_start.sh /usr/local/bin/kolla_extend_start
RUN usermod -a -G kolla heka \
&& chmod 440 /etc/sudoers.d/heka_sudoers \
&& chmod 755 /usr/local/bin/kolla_extend_start \
&& chown -R heka: /usr/share/heka
&& chown -R heka: /usr/share/heka /etc/heka
{{ include_footer }}