Skip to content

Commit

Permalink
ovn-ctl: Ensure that log/run directory have correct permission
Browse files Browse the repository at this point in the history
When someone creates or changes permission of the var/log
directory it stays that way. This can cause issues for logrotate
as it needs to have correct permission on directory.

Attempt to fix the permission every time we run start_ovn_daemon.

Reported-at: https://bugzilla.redhat.com/2113855
Signed-off-by: Ales Musil <amusil@redhat.com>
Signed-off-by: Numan Siddique <numans@ovn.org>
(cherry picked from commit 49b456e)
  • Loading branch information
almusil authored and numansiddique committed Aug 8, 2022
1 parent a27f077 commit 27fb6d4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions utilities/ovn-lib.in
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,9 @@ start_ovn_daemon () {
set "$@" --detach
test X"$MONITOR" = Xno || set "$@" --monitor

chown -R $INSTALL_USER:$INSTALL_GROUP $ovn_logdir
chown -R $INSTALL_USER:$INSTALL_GROUP $ovn_rundir

start_wrapped_daemon "$wrapper" $daemon "$priority" "$@"
}

Expand Down

0 comments on commit 27fb6d4

Please sign in to comment.