summaryrefslogtreecommitdiff
path: root/debian/apt.cron.daily
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2008-03-04 14:23:22 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2008-03-04 14:23:22 +0100
commitd45c49fcef815431b5c1e84be89c5cc99eba52e9 (patch)
tree9b4744eb5422d499a6efb6f4a5c7e79a9c52b798 /debian/apt.cron.daily
parent604c9ee885ba964a4057a6e9ba1f54103afee83d (diff)
* debian/apt.cron.daily:
- only call gconftool if gcontool is installed (LP: #194281)
Diffstat (limited to 'debian/apt.cron.daily')
-rw-r--r--debian/apt.cron.daily2
1 files changed, 1 insertions, 1 deletions
diff --git a/debian/apt.cron.daily b/debian/apt.cron.daily
index b0164a576..2f1a59744 100644
--- a/debian/apt.cron.daily
+++ b/debian/apt.cron.daily
@@ -200,7 +200,7 @@ fi
# set the proxy based on the admin users gconf settings
admin_user=$(getent group admin|cut -d: -f4|cut -d, -f1)
-if [ -n "$admin_user" ] && [ -x /usr/bin/sudo ] && [ -z "$http_proxy" ]; then
+if [ -n "$admin_user" ] && [ -x /usr/bin/sudo ] && [ -z "$http_proxy" ] && [ -x /usr/bin/gconftool ]; then
use=$(sudo -u "$admin_user" gconftool --get /system/http_proxy/use_http_proxy)
host=$(sudo -u "$admin_user" gconftool --get /system/http_proxy/host)
port=$(sudo -u "$admin_user" gconftool --get /system/http_proxy/port)