Merge branch 'ent-12870-Problemas-de-llenado-de-logs-con-pandora-gotty' into 'develop'
prevent warnings See merge request artica/pandorafms!6937
This commit is contained in:
commit
28c71386e8
|
@ -394,7 +394,7 @@ function quickShellSettings()
|
|||
__('Address'),
|
||||
html_print_input_text(
|
||||
'gotty_addr',
|
||||
$config['gotty_addr'],
|
||||
($config['gotty_addr'] ?? ''),
|
||||
'',
|
||||
30,
|
||||
100,
|
||||
|
@ -443,9 +443,8 @@ function quickShellSettings()
|
|||
html_print_checkbox_switch(
|
||||
'gotty_ssh_use_ssl',
|
||||
1,
|
||||
$config['gotty_ssh_use_ssl'],
|
||||
true,
|
||||
$disable_agentaccess
|
||||
($config['gotty_ssh_use_ssl'] ?? false),
|
||||
true
|
||||
)
|
||||
);
|
||||
|
||||
|
@ -497,7 +496,7 @@ function quickShellSettings()
|
|||
html_print_checkbox_switch(
|
||||
'gotty_telnet_use_ssl',
|
||||
1,
|
||||
$config['gotty_telnet_use_ssl'],
|
||||
($config['gotty_telnet_use_ssl'] ?? false),
|
||||
true
|
||||
)
|
||||
);
|
||||
|
|
|
@ -504,7 +504,7 @@ function cron_task_start_gotty(bool $restart_mode=true)
|
|||
}
|
||||
}
|
||||
|
||||
if ($start_proc === true) {
|
||||
if ($start_proc === true && file_exists('/usr/bin/pandora_gotty') === true) {
|
||||
$logFilePath = $config['homedir'].'/log/gotty_cron_tmp.log';
|
||||
shell_exec('touch '.$logFilePath);
|
||||
|
||||
|
@ -527,7 +527,7 @@ function cron_task_start_gotty(bool $restart_mode=true)
|
|||
while ((time() - $startTime) < $maxWaitTime) {
|
||||
if ($start_proc === true) {
|
||||
// Read command output.
|
||||
$log_content = file_get_contents($logFilePath);
|
||||
$log_content = @file_get_contents($logFilePath);
|
||||
}
|
||||
|
||||
if ($start_proc === true
|
||||
|
|
Loading…
Reference in New Issue