summaryrefslogtreecommitdiff
path: root/debian/apt.systemd.daily
diff options
context:
space:
mode:
authorBalint Reczey <balint.reczey@canonical.com>2018-11-30 18:20:39 +0100
committerBalint Reczey <balint.reczey@canonical.com>2018-11-30 18:20:39 +0100
commitdf77fe33fccdb46c26e21feba23d76126ff0ecd6 (patch)
tree759bdfc05c95419b140771f300fdbf7a753b517d /debian/apt.systemd.daily
parentf313e09d167cc7a83846ac9d4d5d72ba10cc2638 (diff)
Set LC_ALL=C.UTF-8 for unattended-upgrades environment when parsing its --help
.UTF-8 sets stdio encoding to UTF-8 which may be ASCII on the system making unattended-upgrades crash. LP: #1806076
Diffstat (limited to 'debian/apt.systemd.daily')
-rwxr-xr-xdebian/apt.systemd.daily2
1 files changed, 1 insertions, 1 deletions
diff --git a/debian/apt.systemd.daily b/debian/apt.systemd.daily
index b532bd151..c6fbca03f 100755
--- a/debian/apt.systemd.daily
+++ b/debian/apt.systemd.daily
@@ -470,7 +470,7 @@ if [ "$1" = "update" ] || [ -z "$1" ] ; then
debug_echo "download upgradable (not run)"
fi
- if which unattended-upgrade >/dev/null 2>&1 && unattended-upgrade --help | grep -q download-only && check_stamp $DOWNLOAD_UPGRADEABLE_STAMP $UnattendedUpgradeInterval; then
+ if which unattended-upgrade >/dev/null 2>&1 && env LC_ALL=C.UTF-8 unattended-upgrade --help | grep -q download-only && check_stamp $DOWNLOAD_UPGRADEABLE_STAMP $UnattendedUpgradeInterval; then
if unattended-upgrade --download-only $XUUPOPT; then
update_stamp $DOWNLOAD_UPGRADEABLE_STAMP
debug_echo "unattended-upgrade -d (success)"