Fix influxdb container
Add influxdb log directory Closes-Bug: #1655001 Change-Id: I9661fe8e8138adf7f1f50f2f2864ee4683f956d9
This commit is contained in:
parent
95bb052fe7
commit
e89536405f
@ -9,8 +9,11 @@ MAINTAINER {{ maintainer }}
|
||||
{{ macros.install_packages(influxdb_packages | customizable("packages")) }}
|
||||
|
||||
COPY influxdb_sudoers /etc/sudoers.d/kolla_influxdb_sudoers
|
||||
COPY extend_start.sh /usr/local/bin/kolla_extend_start
|
||||
|
||||
RUN chmod 750 /etc/sudoers.d \
|
||||
&& chmod 440 /etc/sudoers.d/kolla_influxdb_sudoers \
|
||||
&& chmod 755 /usr/local/bin/kolla_extend_start \
|
||||
&& usermod -a -G kolla influxdb
|
||||
|
||||
{% block influxdb_footer %}{% endblock %}
|
||||
|
11
docker/influxdb/extend_start.sh
Normal file
11
docker/influxdb/extend_start.sh
Normal file
@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Create log directory, with appropriate permissions
|
||||
INFLUXDB_LOG_DIR=/var/log/kolla/influxdb
|
||||
|
||||
if [[ ! -d "${INFLUXDB_LOG_DIR}" ]]; then
|
||||
mkdir -p ${INFLUXDB_LOG_DIR}
|
||||
fi
|
||||
if [[ $(stat -c %a ${INFLUXDB_LOG_DIR}) != "755" ]]; then
|
||||
chmod 755 ${INFLUXDB_LOG_DIR}
|
||||
fi
|
Loading…
Reference in New Issue
Block a user