Merge "neutron-dhcp-agent: change dnsmasq.log rights"

This commit is contained in:
Zuul 2025-01-07 14:21:59 +00:00 committed by Gerrit Code Review
commit c781c66d2b
2 changed files with 11 additions and 0 deletions

View File

@ -14,6 +14,8 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
{{ macros.kolla_patch_sources() }}
COPY extend_start.sh /usr/local/bin/kolla_extend_start
{% block neutron_dhcp_agent_footer %}{% endblock %}
{% block footer %}{% endblock %}

View File

@ -0,0 +1,9 @@
if [[ ! -d "/var/log/kolla/neutron" ]]; then
mkdir -p /var/log/kolla/neutron
fi
if [[ ! -f "/var/log/kolla/neutron/dnsmasq.log" ]]; then
touch /var/log/kolla/neutron/dnsmasq.log
chown neutron:kolla /var/log/kolla/neutron/dnsmasq.log
fi
. /usr/local/bin/kolla_neutron_extend_start