diff options
author | Renato Botelho <renato@netgate.com> | 2016-01-22 12:30:30 -0200 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2016-01-22 12:30:30 -0200 |
commit | e21ac870c67e5ac9638cc18b8d03eff76725aabb (patch) | |
tree | 8d85d03b26d887d3b55f84ea267c12a3c4bb9c5e | |
parent | 9f2f1ddaaac1b479049af943a268e88af8d1acbe (diff) | |
download | pfsense-e21ac870c67e5ac9638cc18b8d03eff76725aabb.zip pfsense-e21ac870c67e5ac9638cc18b8d03eff76725aabb.tar.gz |
Make sure LANG = C for pkg calls
-rw-r--r-- | src/etc/inc/pkg-utils.inc | 1 | ||||
-rwxr-xr-x | src/usr/local/sbin/pfSense-upgrade | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/etc/inc/pkg-utils.inc b/src/etc/inc/pkg-utils.inc index 55a0395..daceefb 100644 --- a/src/etc/inc/pkg-utils.inc +++ b/src/etc/inc/pkg-utils.inc @@ -104,6 +104,7 @@ function pkg_env() { global $config, $g; $pkg_env_vars = array( + "LANG" => "C", "HTTP_USER_AGENT" => $user_agent, "ASSUME_ALWAYS_YES" => "true" ); diff --git a/src/usr/local/sbin/pfSense-upgrade b/src/usr/local/sbin/pfSense-upgrade index 536bb45..5480504 100755 --- a/src/usr/local/sbin/pfSense-upgrade +++ b/src/usr/local/sbin/pfSense-upgrade @@ -662,6 +662,8 @@ do_reboot() { fi } +export LANG=C + pid_file="/var/run/$(basename $0).pid" logfile="/cf/conf/upgrade_log.txt" stdout='/dev/null' |