From d389c17974c6ceefaaded5bc00b8dd27a3845cc6 Mon Sep 17 00:00:00 2001 From: shikenghua Date: Tue, 27 Aug 2019 20:54:59 +0800 Subject: [PATCH] [docker-fpm-frr] Change the ownership of files within /etc/frr/ to frr 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. --- dockers/docker-fpm-frr/start.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dockers/docker-fpm-frr/start.sh b/dockers/docker-fpm-frr/start.sh index fd092919e000..3c732fece943 100755 --- a/dockers/docker-fpm-frr/start.sh +++ b/dockers/docker-fpm-frr/start.sh @@ -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