play with script
diff --git a/xos/services/vpn/templates/connect.vpn.j2 b/xos/services/vpn/templates/connect.vpn.j2
index db477ff..4ce9894 100644
--- a/xos/services/vpn/templates/connect.vpn.j2
+++ b/xos/services/vpn/templates/connect.vpn.j2
@@ -10,21 +10,15 @@
cert {{ client_name }}.crt
key {{ client_name }}.key
verb 3
-{% for tenant in remotes %}
-remote {{ tenant.nat_ip }} {{ tenant.port_number }} {{ tenant.protocol }}
-{% endfor %}
+{% for tenant in remotes %}remote {{ tenant.nat_ip }} {{ tenant.port_number }} {{ tenant.protocol }}{% endfor %}
{% if is_persistent %}
persist-tun
persist-key
{% endif %}
" > client.conf
-printf "%b" "{% for line in ca_crt %}
-{{ line }}
-{% endfor %}" > ca.crt
-printf "%b" "{% for line in client_crt %}
-{{ line }}{% endfor %}" > {{ client_name }}.crt
-printf "%b" "{% for line in client_key %}
-{{ line }}{% endfor %}" > {{ client_name }}.key
+printf "%b" "{% for line in ca_crt %}{{ line }}{% endfor %}" > ca.crt
+printf "%b" "{% for line in client_crt %}{{ line }}{% endfor %}" > {{ client_name }}.crt
+printf "%b" "{% for line in client_key %}{{ line }}{% endfor %}" > {{ client_name }}.key
apt-get update
apt-get install openvpn -y
openvpn client.conf