diff options
author | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2018-01-04 12:57:08 +0200 |
---|---|---|
committer | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2018-01-04 12:57:08 +0200 |
commit | a8c29802e289edf719eb2d8e584f145b15fa60b3 (patch) | |
tree | 3ed70ebe3a21acf02b5c8bd2cfeedb8b51374c84 /charts.d/libreswan.chart.sh | |
parent | bd9b3cf72a39e25a1a2795c4d8c69f1e23f8a7db (diff) |
check that the ipsec command is libreswan; fixes #3221
Diffstat (limited to 'charts.d/libreswan.chart.sh')
-rw-r--r-- | charts.d/libreswan.chart.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/charts.d/libreswan.chart.sh b/charts.d/libreswan.chart.sh index 61d935adee..30632e9ce2 100644 --- a/charts.d/libreswan.chart.sh +++ b/charts.d/libreswan.chart.sh @@ -84,6 +84,13 @@ libreswan_check() { require_cmd ipsec || return 1 + # make sure it is libreswan + if [ -z "$(ipsec --version | grep -i libreswan)" ] + then + error "ipsec command is not Libreswan. Disabling Libreswan plugin." + return 1 + fi + # check that we can collect data libreswan_get || return 1 |