Oops. Of course s/-n "no_proxy"/-n "$no_proxy"/, so, new patch:
--- /tmp/apt.cron 2009-03-30 09:10:23.000000000 -0400
+++ /etc/cron.daily/apt 2009-03-30 09:10:32.000000000 -0400
@@ -207,6 +207,12 @@
if [ "$use" = "true" ] && [ -n "$host" ] && [ -n "$port" ]; then
export http_proxy="http://$host:$port/"
fi
+ no_proxy=$(sudo -u "$admin_user" gconftool --get
/system/http_proxy/ignore_hosts)
+ no_proxy=${no_proxy#\[}
+ no_proxy=${no_proxy%\]}
+ if [ -n "$no_proxy" ]; then
+ export no_proxy
+ fi
fi
--
cront script should observe _all_ of the admin users proxy variables
https://bugs.launchpad.net/bugs/351579
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs