[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Bug 1431] apt-updates WARNING in nagios



http://bugs.skolelinux.org/show_bug.cgi?id=1431


Petter Reinholdtsen <pere@hungry.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|Configuration               |debian-edu-config




--- Comment #1 from Petter Reinholdtsen <pere@hungry.com>  2010-01-26 10:07:38 ---
This patch should solve the issue during installation.  I believe this only
affect installations done without using a proxy, which means all installations
from DVD and most from CD will be affected.

The problem with apt.conf being unreadable make all apt operations fail for
non-root users if using a proxy is required.

Index: share/debian-edu-config/tools/update-proxy-from-wpad
===================================================================
--- share/debian-edu-config/tools/update-proxy-from-wpad        (revision
62090)
+++ share/debian-edu-config/tools/update-proxy-from-wpad        (working copy)
@@ -56,6 +56,7 @@
     # extracted from the WPAD file
     file=/etc/environment
     touch $file
+    chmod a+r $file
     sed -e "s%^http_proxy=.*%http_proxy=$http_proxy%" \
        -e "s%^ftp_proxy=.*%ftp_proxy=$http_proxy%" \
        < $file > $file.new && chmod a+r $file.new
@@ -74,6 +75,7 @@
     # used during installation, so we update this file.
     file=/etc/apt/apt.conf
     touch $file
+    chmod a+r $file
     sed -e "s%^Acquire::http::Proxy .*%Acquire::http::Proxy \"$http_proxy\";%"
\
        -e "s%^Acquire::ftp::Proxy .*%Acquire::ftp::Proxy \"$ftp_proxy\";%" \
            < $file > $file.new && chmod a+r $file.new

It is hard to fix this during upgrades in a policy compliant way, as the
debian-edu-config postinst is not allowed according to policy to change the
settings of another package in its postinst script.


-- 
Configure bugmail: http://bugs.skolelinux.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are watching all bug changes.


Reply to: