11 lines
258 B
Bash
11 lines
258 B
Bash
|
#!/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
|