mirror of
https://github.com/JRGTH/xigmanas-bastille-extension.git
synced 2025-12-10 17:00:18 +01:00
Fix bastille version display under maintenance tab
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
======================
|
||||
Version Description
|
||||
|
||||
1.1.44......Fix bastille version display under maintenance tab.
|
||||
1.1.43......Update: Finish adding support for 14.3 release.
|
||||
1.1.42......Update: Add support for 14.3 release + add -a option for destroy.
|
||||
1.1.41......Update: Add support for 14.2 release.
|
||||
|
||||
7
gui/bastille_manager-lib.inc
Executable file → Normal file
7
gui/bastille_manager-lib.inc
Executable file → Normal file
@@ -90,8 +90,11 @@ function is_dir_empty($reldir) {
|
||||
function get_version_bastille() {
|
||||
global $tarballversion, $prdname;
|
||||
if (is_file("{$tarballversion}")) {
|
||||
//exec("/bin/cat {$tarballversion}", $result);
|
||||
exec("/usr/bin/grep 'BASTILLE_VERSION=' {$tarballversion} | cut -d'\"' -f2", $result);
|
||||
// For some reason bastille bin version value isn't double quoted anymore so we can't use the old delimiter.
|
||||
// we will keep the old line for reference.
|
||||
|
||||
//exec("/usr/bin/grep 'BASTILLE_VERSION=' {$tarballversion} | cut -d'\"' -f2", $result);
|
||||
exec("/usr/bin/grep 'BASTILLE_VERSION=' {$tarballversion} | cut -d'=' -f2", $result);
|
||||
return ($result[0] ?? '');
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user