summaryrefslogtreecommitdiff
path: root/spec/site_to_site_vpn/vyos4_script.sh
diff options
context:
space:
mode:
Diffstat (limited to 'spec/site_to_site_vpn/vyos4_script.sh')
-rw-r--r--spec/site_to_site_vpn/vyos4_script.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/site_to_site_vpn/vyos4_script.sh b/spec/site_to_site_vpn/vyos4_script.sh
index ec45e72..df048bb 100644
--- a/spec/site_to_site_vpn/vyos4_script.sh
+++ b/spec/site_to_site_vpn/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 route 10.0.2.0/24 next-hop 10.0.3.11