diff options
author | Yuya Kusakabe <yuya.kusakabe@gmail.com> | 2017-07-22 22:31:25 +0900 |
---|---|---|
committer | Yuya Kusakabe <yuya.kusakabe@gmail.com> | 2017-07-22 22:31:25 +0900 |
commit | ef1952b6d89f2326c56932bfc07e19ff7f713a01 (patch) | |
tree | 127561d1a75566c99855a6daf2faea8f55a8cfb0 /spec/bgp6/vyos4_script.sh | |
parent | 2462c51c199bef49b6e3673dfd5d6168983340b9 (diff) | |
download | vyos-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.sh | 4 |
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 |