From 0c7c91c6e3ae96c768f343ff1e5436eb0181989b Mon Sep 17 00:00:00 2001 From: mh Date: Sat, 10 Aug 2013 19:23:58 +0200 Subject: only show installed connections --- manifests/base.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'manifests/base.pp') diff --git a/manifests/base.pp b/manifests/base.pp index 1a0b4bf..e4fd1e5 100644 --- a/manifests/base.pp +++ b/manifests/base.pp @@ -37,7 +37,7 @@ class strongswan::base { '/etc/ipsec.conf': content => template('strongswan/ipsec.conf.erb'); "/usr/local/sbin/${binary_name}_connected_hosts": - content => "#!/bin/bash\n${strongswan::binary} status | grep ESTABLISHED | awk -F\\[ '{ print \$1 }'\n", + content => "#!/bin/bash\n${strongswan::binary} status | grep INSTALLED | awk -F\\{ '{ print \$1 }'\n", notify => undef, mode => '0500'; "/usr/local/sbin/${binary_name}_start_unconnected": -- cgit v1.2.3