From a9c94abf530f3ed36b9b3f10c89549f04af26df4 Mon Sep 17 00:00:00 2001 From: Michal Nasiadka Date: Mon, 13 Jan 2025 09:54:25 +0100 Subject: openvswitch: Fix logs dir permission Closes-Bug: #1795609 Change-Id: Iedfb2df027c0cefc45668a76d45ce62193aba9ef --- docker/openvswitch/openvswitch-vswitchd/extend_start.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'docker/openvswitch/openvswitch-vswitchd') diff --git a/docker/openvswitch/openvswitch-vswitchd/extend_start.sh b/docker/openvswitch/openvswitch-vswitchd/extend_start.sh index e2fc55465..fde542130 100644 --- a/docker/openvswitch/openvswitch-vswitchd/extend_start.sh +++ b/docker/openvswitch/openvswitch-vswitchd/extend_start.sh @@ -1,3 +1,8 @@ #!/bin/bash +if [[ ! -r "/var/log/kolla/openvswitch/ovs-vswitchd.log" ]]; then + touch /var/log/kolla/openvswitch/ovs-vswitchd.log + chown openvswitch:openvswitch /var/log/kolla/openvswitch/ovs-vswitchd.log +fi + modprobe openvswitch -- cgit v1.2.3