diff options
author | Renato Botelho <renato@netgate.com> | 2015-07-31 10:04:48 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2015-07-31 10:04:48 -0300 |
commit | fdc5447bd5e8d8a71d15ac5eefe7795736db7ba7 (patch) | |
tree | 96a48c76384c89e48187bc6545cf092af2bbd6f0 | |
parent | 5779ade6707ba530517da239d9ec3fc751d17d83 (diff) | |
download | pfsense-fdc5447bd5e8d8a71d15ac5eefe7795736db7ba7.zip pfsense-fdc5447bd5e8d8a71d15ac5eefe7795736db7ba7.tar.gz |
Define HTTP_USER_AGENT for pkg calls
-rw-r--r-- | etc/inc/pkg-utils.inc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/inc/pkg-utils.inc b/etc/inc/pkg-utils.inc index c2da5dd..a9bc25d 100644 --- a/etc/inc/pkg-utils.inc +++ b/etc/inc/pkg-utils.inc @@ -91,6 +91,7 @@ function pkg_call($params, $mute = false) { } $env = array( + "HTTP_USER_AGENT" => $g['product_name'] . '/' . $g['product_version'], "ASSUME_ALWAYS_YES" => "true" ); @@ -175,6 +176,7 @@ function pkg_exec($params, &$stdout, &$stderr) { } $env = array( + "HTTP_USER_AGENT" => $g['product_name'] . '/' . $g['product_version'], "ASSUME_ALWAYS_YES" => "true" ); |