tags 292145 patch
thanks

Hi, 

On Thu, Oct 26, 2006 at 10:28:08PM +0200, Franklin PIAT wrote:
> I wanted run apt-proxy daemon as another user...
> 
> After reviewing the scripts, i noticed that i had to changed it in two
> places :
> in /etc/default/apt-proxy i had to add "user=jdoe"
> in /etc/apt-proxy/apt-proxy-v2.conf i had to add "username=jdoe"
> it would be nice to document this is some way.


Please find attached a patch solving this.  I've modified
/etc/apt-proxy/apt-proxy.conf, /etc/default/apt-proxy and
apt-proxy.conf.5 manpage.


Cheers,
  Xavier
Index: debian/default
===================================================================
--- debian/default	(revision 717)
+++ debian/default	(working copy)
@@ -6,6 +6,11 @@
 ## Log file
 #logfile=/var/log/apt-proxy.log
 
+## User owning the log file and running the apt-proxy daemon process.  This 
+## value should be the same as configured in /etc/apt-proxy/apt-proxy.conf 
+## ("username" parameter).
+#user=aptproxy
+
 ## change process priority as suggested in http://bugs.debian.org/275658
 ## Feel free to change or comment this line if needed.
 renice 5 $$ >/dev/null
Index: doc/apt-proxy.conf
===================================================================
--- doc/apt-proxy.conf	(revision 717)
+++ doc/apt-proxy.conf	(working copy)
@@ -8,6 +8,9 @@
 ;; Server port to listen on
 port = 9999
 
+;; User running the apt-proxy daemon process(es) (default: aptproxy)
+; username = aptproxy
+
 ;; Control files (Packages/Sources/Contents) refresh rate
 ;;
 ;; Minimum age of a file before it is refreshed
Index: doc/apt-proxy.conf.5
===================================================================
--- doc/apt-proxy.conf.5	(revision 717)
+++ doc/apt-proxy.conf.5	(working copy)
@@ -31,6 +31,11 @@
 TCP port on which apt\-proxy will listen for requests.
 
 .TP
+.B username
+User running the apt-proxy daemon process(es).  This value should be the same as 
+configured in /etc/default/apt-proxy.  Default: aptproxy
+
+.TP
 .B min_refresh_delay
 If different from \fBoff\fP, means that Packages and other control
 files will not be refreshed until they are at least this age.

Reply via email to