Permalink
Browse files

fix /var/run/quagga permissions for Ubuntu 16.04

  • Loading branch information...
siliconja committed Mar 31, 2017
1 parent 724534e commit 0b0557e0088f92856a1d42bd9d9aca5ff72ca60b
Showing with 6 additions and 0 deletions.
  1. +6 −0 daemon/core/services/quagga.py
@@ -194,6 +194,12 @@ def generateQuaggaBoot(cls, node, services):
return 1
fi
+ # fix /var/run/quagga permissions
+ id -u quagga 2>/dev/null >/dev/null
+ if [ "$?" = "0" ]; then
+ chown quagga $QUAGGA_STATE_DIR
+ fi
+
bootdaemon "zebra"
for r in rip ripng ospf6 ospf bgp babel; do
if grep -q "^router \<${r}\>" $QUAGGA_CONF; then

0 comments on commit 0b0557e

Please sign in to comment.