mirror of
https://github.com/webmin/webmin.git
synced 2026-06-20 11:20:30 +01:00
Get version from -V flag
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user