mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Declare variable out of loop
This commit is contained in:
parent
96d05f1daf
commit
73a4e6cda3
@ -608,10 +608,10 @@ if (!isvalidpid($gui_pidfile) && $confirmed && !$completed) {
|
||||
}
|
||||
|
||||
if (isset($params)) {
|
||||
for ($idx = 0; $idx < 3; $idx++) {
|
||||
$upgrade_script = "{$pfsense_upgrade} -y -l " .
|
||||
"{$logfilename}.txt -p {$sock_file}";
|
||||
$upgrade_script = "{$pfsense_upgrade} -y -l " .
|
||||
"{$logfilename}.txt -p {$sock_file}";
|
||||
|
||||
for ($idx = 0; $idx < 3; $idx++) {
|
||||
unlink_if_exists($sock_file);
|
||||
$execpid = mwexec_bg("{$upgrade_script} {$params}");
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user