Matt Brown wrote: > Ben Hutchings wrote: > > > You misunderstand me. I meant that if apt-proxy does not have > > permission to write to the cache dir, serving files without caching them > > is the best it can do. > > Ah, sure, I agree, apt-proxy's behaviour is not bad, I'm quite happy > with apt-proxy doing that. > > The point of this bug report is that the package installation scripts > need to be fixed so that apt-proxy functions correctly after installation. > > Now I'm confused about what you're trying to tell me about how this > should be fixed. Could you rephrase please?
How about:
--- debian/postinst~ 2005-08-18 16:48:31.000000000 +0100
+++ debian/postinst 2006-04-13 21:58:19.076626250 +0100
@@ -17,15 +17,15 @@
echo creating $APTPROXY_USER user...
adduser --quiet --system --ingroup nogroup \
--home $CACHEDIR --no-create-home $APTPROXY_USER
-
- # Make apt-proxy user own cache directory
- chown -R $APTPROXY_USER $CACHEDIR
- # Create a blank logfile owned by apt-proxy user
- touch $APTPROXY_LOGFILE
- chown $APTPROXY_USER:adm $APTPROXY_LOGFILE
- chmod 640 $APTPROXY_LOGFILE
fi
+ # Make apt-proxy user own cache directory
+ chown -R $APTPROXY_USER $CACHEDIR
+ # Create a blank logfile owned by apt-proxy user
+ touch $APTPROXY_LOGFILE
+ chown $APTPROXY_USER:adm $APTPROXY_LOGFILE
+ chmod 640 $APTPROXY_LOGFILE
+
PREV="$2"
db_fget $NAME/upgrading-v2 had_v2_conf || true
had_v2_conf=$RET
-- END --
Ben.
--
Ben Hutchings
The obvious mathematical breakthrough [to break modern encryption] would be
development of an easy way to factor large prime numbers. - Bill Gates
signature.asc
Description: This is a digitally signed message part

