aboutsummaryrefslogtreecommitdiff
path: root/docker/opendaylight/extend_start.sh
diff options
context:
space:
mode:
authorMarcus G K Williams <marcus.williams@intel.com>2017-01-03 13:42:46 -0800
committerMarcus G K Williams <marcus.williams@intel.com>2017-04-18 12:57:55 -0700
commit278bcdb154f6e9b62dcd823c9233d8b1d93ba45d (patch)
tree06b30df608a10b82de2ffc2b55c62287cbb034ed /docker/opendaylight/extend_start.sh
parent1cad4813b60dcea08587375e7cfd7b3f8b407592 (diff)
downloadkolla-278bcdb154f6e9b62dcd823c9233d8b1d93ba45d.tar.gz
kolla-278bcdb154f6e9b62dcd823c9233d8b1d93ba45d.zip
Add OpenDaylight Container to kolla
Implements docker container template for OpenDaylight. Change-Id: Icdcff77f0f6088f5a4db1bf77e37334dbd42074f Partially-Implements: blueprint opendaylight-support
Diffstat (limited to 'docker/opendaylight/extend_start.sh')
-rw-r--r--docker/opendaylight/extend_start.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/docker/opendaylight/extend_start.sh b/docker/opendaylight/extend_start.sh
new file mode 100644
index 000000000..8fdba0726
--- /dev/null
+++ b/docker/opendaylight/extend_start.sh
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+OPENDAYLIGHT_LOG_DIR=/var/log/kolla/opendaylight
+
+if [[ ! -d "${OPENDAYLIGHT_LOG_DIR}" ]]; then
+ mkdir -p "${OPENDAYLIGHT_LOG_DIR}"
+fi
+if [[ $(stat -c %a "${OPENDAYLIGHT_LOG_DIR}") != "755" ]]; then
+ chmod 755 "${OPENDAYLIGHT_LOG_DIR}"
+fi