aboutsummaryrefslogtreecommitdiff
path: root/kolla/docker/openvswitch/openvswitch-base/extend_start.sh
diff options
context:
space:
mode:
Diffstat (limited to 'kolla/docker/openvswitch/openvswitch-base/extend_start.sh')
-rw-r--r--kolla/docker/openvswitch/openvswitch-base/extend_start.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/kolla/docker/openvswitch/openvswitch-base/extend_start.sh b/kolla/docker/openvswitch/openvswitch-base/extend_start.sh
new file mode 100644
index 000000000..1b0ed1300
--- /dev/null
+++ b/kolla/docker/openvswitch/openvswitch-base/extend_start.sh
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+if [[ ! -d "/var/log/kolla/openvswitch" ]]; then
+ mkdir -p /var/log/kolla/openvswitch
+fi
+if [[ $(stat -c %a /var/log/kolla/openvswitch) != "755" ]]; then
+ chmod 755 /var/log/kolla/openvswitch
+fi
+
+chown -R openvswitch:openvswitch /var/log/kolla/openvswitch
+
+. /usr/local/bin/kolla_openvswitch_extend_start