Merge "Fix logging for chrony"
This commit is contained in:
commit
a4b23803ff
@ -2,9 +2,15 @@
|
||||
|
||||
rm -f /var/run/chronyd.pid
|
||||
|
||||
if [[ ! -d "/var/log/kolla/chrony" ]]; then
|
||||
mkdir -p /var/log/kolla/chrony
|
||||
CHRONY_LOG_DIR="/var/log/kolla/chrony"
|
||||
if [[ ! -d "${CHRONY_LOG_DIR}" ]]; then
|
||||
mkdir -p ${CHRONY_LOG_DIR}
|
||||
fi
|
||||
if [[ $(stat -c %a /var/log/kolla/chrony) != "755" ]]; then
|
||||
|
||||
if [[ $(stat -c %a ${CHRONY_LOG_DIR}) != "755" ]]; then
|
||||
chmod 755 /var/log/kolla/chrony
|
||||
fi
|
||||
|
||||
if [[ $(stat -c %U:%G ${CHRONY_LOG_DIR}) != "chrony:chrony" ]]; then
|
||||
chown chrony:chrony ${CHRONY_LOG_DIR}
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user