[docker-fpm-frr] Change the ownership of files within /etc/frr/ to frr (#3388)
The owner of the generated files (/etc/frr/*.conf) by start.sh is root if it is a new file. This will cause error when executing "copy running-config startup-config" in vtysh because of privilege issue.
This commit is contained in:
parent
17c21acacf
commit
9032ad8b12
@ -16,6 +16,8 @@ elif [ "$CONFIG_TYPE" == "unified" ]; then
|
||||
rm -f /etc/frr/bgpd.conf /etc/frr/zebra.conf /etc/frr/staticd.conf
|
||||
fi
|
||||
|
||||
chown -R frr:frr /etc/frr/
|
||||
|
||||
sonic-cfggen -d -t /usr/share/sonic/templates/isolate.j2 > /usr/sbin/bgp-isolate
|
||||
chown root:root /usr/sbin/bgp-isolate
|
||||
chmod 0755 /usr/sbin/bgp-isolate
|
||||
|
Loading…
Reference in New Issue
Block a user