mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-28 16:24:05 +02:00
The version output of icinga prints "Version" capatalized. This accommodates both by ignoring case in grep.
This commit is contained in:
parent
53309a3d6b
commit
13e217c725
@ -109,7 +109,7 @@ redhat)
|
||||
esac
|
||||
|
||||
icinga_version() {
|
||||
"$ICINGA2_BIN" --version 2>/dev/null | grep -oP '\(version: [rv]?\K\d+\.\d+\.\d+[^\)]*'
|
||||
"$ICINGA2_BIN" --version 2>/dev/null | grep -oPi '\(version: [rv]?\K\d+\.\d+\.\d+[^\)]*'
|
||||
}
|
||||
|
||||
version() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user