projects
/
webmin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a424d2
)
Get version from -V flag
author
Jamie Cameron
<jcameron@webmin.com>
Mon, 19 Jul 2010 15:52:24 +0000
(08:52 -0700)
committer
Jamie Cameron
<jcameron@webmin.com>
Mon, 19 Jul 2010 15:52:24 +0000
(08:52 -0700)
heartbeat/index.cgi
patch
|
blob
|
history
diff --git
a/heartbeat/index.cgi
b/heartbeat/index.cgi
index
51094cf
..
a376af0
100755
(executable)
--- a/
heartbeat/index.cgi
+++ b/
heartbeat/index.cgi
@@
-9,6
+9,10
@@
$heartbeat_version = undef;
if ($config{'version'}) {
$heartbeat_version = $config{'version'};
}
+elsif (&backquote_command("($config{'heartbeat'} -V) </dev/null 2>&1") =~
+ /(\S+)/) {
+ $heartbeat_version = $1;
+ }
elsif (&foreign_check("software")) {
&foreign_require("software", "software-lib.pl");
local @pinfo = &software::package_info("heartbeat");