summaryrefslogtreecommitdiff
path: root/op-mode-definitions
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-08-26 13:13:26 +0200
committerChristian Poessinger <christian@poessinger.com>2019-08-26 13:13:26 +0200
commitd78afa762043e113df38fcb871f937ff52679998 (patch)
tree5c4a1327e19c5fc49c57d37a71bd03f4799d34bb /op-mode-definitions
parentca6c3e44833d0de868997a9672a16779c1abf9d2 (diff)
downloadvyos-1x-d78afa762043e113df38fcb871f937ff52679998.tar.gz
vyos-1x-d78afa762043e113df38fcb871f937ff52679998.zip
openvpn: T1548: fix indention on op-mode definition
Diffstat (limited to 'op-mode-definitions')
-rw-r--r--op-mode-definitions/openvpn.xml36
1 files changed, 18 insertions, 18 deletions
diff --git a/op-mode-definitions/openvpn.xml b/op-mode-definitions/openvpn.xml
index ac0c42789..2adbfba53 100644
--- a/op-mode-definitions/openvpn.xml
+++ b/op-mode-definitions/openvpn.xml
@@ -2,25 +2,25 @@
<interfaceDefinition>
<node name="generate">
<children>
- <node name="openvpn">
- <properties>
- <help>OpenVPN key generation tool</help>
- </properties>
- <children>
- <tagNode name="key">
- <properties>
- <help>Generate shared-secret key with specified file name</help>
- <completionHelp>
- <list>&lt;filename&gt;</list>
- </completionHelp>
- </properties>
- <command>
+ <node name="openvpn">
+ <properties>
+ <help>OpenVPN key generation tool</help>
+ </properties>
+ <children>
+ <tagNode name="key">
+ <properties>
+ <help>Generate shared-secret key with specified file name</help>
+ <completionHelp>
+ <list>&lt;filename&gt;</list>
+ </completionHelp>
+ </properties>
+ <command>
result=1;
key_path=$4
full_path=
# Prepend /config/auth if the path is not absolute
- if echo $key_path | egrep -ve '^/.*' > /dev/null; then
+ if echo $key_path | egrep -ve '^/.*' &gt; /dev/null; then
full_path=/config/auth/$key_path
else
full_path=$key_path
@@ -40,9 +40,9 @@
fi
/usr/libexec/vyos/validators/file-exists --directory /config/auth "$full_path"
</command>
- </tagNode>
- </children>
- </node>
+ </tagNode>
+ </children>
+ </node>
</children>
</node>
<node name="reset">
@@ -59,7 +59,7 @@
<script>sudo ${vyos_completion_dir}/list_openvpn_clients.py --all</script>
</completionHelp>
</properties>
- <command>echo kill $4 | socat - UNIX-CONNECT:/tmp/openvpn-mgmt-intf > /dev/null</command>
+ <command>echo kill $4 | socat - UNIX-CONNECT:/tmp/openvpn-mgmt-intf &gt; /dev/null</command>
</tagNode>
<tagNode name="interface">
<properties>