summaryrefslogtreecommitdiff
path: root/spec/bgp6/vyos4_script.sh
diff options
context:
space:
mode:
authorYuya Kusakabe <yuya.kusakabe@gmail.com>2017-07-22 22:31:25 +0900
committerYuya Kusakabe <yuya.kusakabe@gmail.com>2017-07-22 22:31:25 +0900
commitef1952b6d89f2326c56932bfc07e19ff7f713a01 (patch)
tree127561d1a75566c99855a6daf2faea8f55a8cfb0 /spec/bgp6/vyos4_script.sh
parent2462c51c199bef49b6e3673dfd5d6168983340b9 (diff)
downloadvyos-integration-test-ef1952b6d89f2326c56932bfc07e19ff7f713a01.tar.gz
vyos-integration-test-ef1952b6d89f2326c56932bfc07e19ff7f713a01.zip
Run script with vyattacfg group
Diffstat (limited to 'spec/bgp6/vyos4_script.sh')
-rw-r--r--spec/bgp6/vyos4_script.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/bgp6/vyos4_script.sh b/spec/bgp6/vyos4_script.sh
index 4354cb4..fa1cd7e 100644
--- a/spec/bgp6/vyos4_script.sh
+++ b/spec/bgp6/vyos4_script.sh
@@ -1,5 +1,9 @@
#!/bin/vbash
+if [ "$(id -g -n)" != 'vyattacfg' ] ; then
+ exec sg vyattacfg -c "/bin/vbash $(readlink -f $0) $@"
+fi
+
source /opt/vyatta/etc/functions/script-template
set protocols static route6 fd00:5679:4f53:2::/64 next-hop fd00:5679:4f53:3::b