Skip to content

Commit a9fd561

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "masakari: Ensure log files are owned by masakari user"
2 parents f48e1b4 + edd9933 commit a9fd561

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docker/masakari/masakari-base/extend_start.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
if [[ ! -d "/var/log/kolla/masakari" ]]; then
44
mkdir -p /var/log/kolla/masakari
55
fi
6+
if [[ $(stat -c %U:%G /var/log/kolla/masakari) != "masakari:kolla" ]]; then
7+
chown -R masakari:kolla /var/log/kolla/masakari
8+
fi
69
if [[ $(stat -c %a /var/log/kolla/masakari) != "755" ]]; then
710
chmod 755 /var/log/kolla/masakari
811
fi

0 commit comments

Comments
 (0)