diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-03-01 17:23:02 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-03-01 17:23:02 +0000 |
commit | 999705416325df91682423b6eb415e15314d194d (patch) | |
tree | a6ce92b305dad268f1ed700560c8b69c93f97391 /usr | |
parent | f3d370004fef246452be485f7cd998769ee5a4fc (diff) | |
download | pfsense-999705416325df91682423b6eb415e15314d194d.zip pfsense-999705416325df91682423b6eb415e15314d194d.tar.gz |
Add proxy_auth_username and proxy_auth_password system tags which will control the auto upgrade process if a proxy server is involved.
Currently this is a hidden variable (similar to the way m0n0wall functions) but will have a GUI written if there is enough demand.
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/system_firmware.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/usr/local/www/system_firmware.php b/usr/local/www/system_firmware.php index ea78b0f..dc5f652 100755 --- a/usr/local/www/system_firmware.php +++ b/usr/local/www/system_firmware.php @@ -32,7 +32,13 @@ $d_isfwfile = 1; require("guiconfig.inc"); if($_GET['autoupgrade'] <> "") { - exec_rc_script_async("/etc/rc.firmware_auto"); + $http_auth_username = ""; + $http_auth_password = ""; + if($config['system']['proxy_auth_username']) + $http_auth_username = $config['system']['proxy_auth_username']; + if($config['system']['proxy_auth_password']) + $http_auth_password = $config['system']['proxy_auth_password']; + exec_rc_script_async("/etc/rc.firmware_auto {$http_auth_username} {$http_auth_password}"); $savemsg = "pfSense is now auto upgrading. The firewall will automatically reboot if it succeeds."; } |