mirror of
https://github.com/oneoffdallas/pfsense-nagios-checks.git
synced 2024-12-22 17:13:44 +01:00
Fix issue with PHP error written to system.log
Thanks for the recommendation @oraclesod
This commit is contained in:
parent
b4f9d77bd5
commit
c8be287ad7
@ -9,7 +9,15 @@
|
||||
# Modified 17 Oct 2019
|
||||
|
||||
require_once("pkg-utils.inc");
|
||||
$system_pkg_version = get_system_pkg_version();
|
||||
global $g;
|
||||
|
||||
if (file_exists("{$g['varrun_path']}/pkg.dirty")) {
|
||||
$system_pkg_version = get_system_pkg_version(false,false);
|
||||
} else {
|
||||
shell_exec("sudo touch "."{$g['varrun_path']}/pkg.dirty");
|
||||
$system_pkg_version = get_system_pkg_version(false,false);
|
||||
shell_exec("sudo rm " . "{$g['varrun_path']}/pkg.dirty");
|
||||
}
|
||||
|
||||
$current_installed_buildtime = trim(file_get_contents("/etc/version.buildtime"));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user