summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorsever-sever <v.gletenko@vyos.io>2021-04-02 19:29:00 +0000
committersever-sever <v.gletenko@vyos.io>2021-04-02 19:29:36 +0000
commitda313c40f7bac632da9bb3d83f2e7ae4ea5d02af (patch)
treef683848e2108c7e8ebe2f4488e707aa1c246ac29 /scripts
parenta6dcf92d9517d2e410f8b4e14145d44e6bb8b3f6 (diff)
downloadvyatta-cfg-da313c40f7bac632da9bb3d83f2e7ae4ea5d02af.tar.gz
vyatta-cfg-da313c40f7bac632da9bb3d83f2e7ae4ea5d02af.zip
vyos-router: T3217: mount frr.conf to /run/frr/config dir
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/init/vyos-router8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/init/vyos-router b/scripts/init/vyos-router
index 4437285..ccb9c91 100755
--- a/scripts/init/vyos-router
+++ b/scripts/init/vyos-router
@@ -253,6 +253,14 @@ start ()
# a requirement for netns support
mkdir -p /var/run/netns
+ # Fixup for FRR save configs T3217
+ mkdir -p /run/frr/config
+ echo "log syslog" > /run/frr/config/frr.conf
+ echo "log facility local7" >> /run/frr/config/frr.conf
+ chown -R root:frrvty /run/frr/config/frr.conf
+ chmod 775 /run/frr/config/frr.conf
+ mount --bind /run/frr/config/frr.conf /etc/frr/frr.conf
+
# chown the config dir to give all admins access
chown -R root:frrvty /etc/frr
chmod 775 /etc/frr