Skip to content

Commit

Permalink
Merge pull request #2316 from abhat/fix_uid_gid
Browse files Browse the repository at this point in the history
Bug 1865743: Add a prestart line to change ownership of openvswitch dir
  • Loading branch information
openshift-merge-robot committed Jan 11, 2021
2 parents 9347e45 + c6b48e4 commit a8c78a3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions templates/common/_base/units/ovs-vswitchd.service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ dropins:
contents: |
[Service]
Restart=always
ExecStartPre=-/bin/sh -c '/usr/bin/chown -R :$${OVS_USER_ID##*:} /var/lib/openvswitch'
ExecStartPre=-/bin/sh -c '/usr/bin/chown -R :$${OVS_USER_ID##*:} /etc/openvswitch'
ExecStartPre=-/bin/sh -c '/usr/bin/chown -R :$${OVS_USER_ID##*:} /run/openvswitch'

0 comments on commit a8c78a3

Please sign in to comment.