Fix ownership of /var/log/freeradius/* more efficiently. release_1_0_5
authorphampson <phampson>
Tue, 6 Sep 2005 15:08:52 +0000 (15:08 +0000)
committerphampson <phampson>
Tue, 6 Sep 2005 15:08:52 +0000 (15:08 +0000)
Thanks to Guido Trotter (Debug BTS #326891)

debian/changelog
debian/freeradius.postinst

index ebed77e..fc98aea 100644 (file)
@@ -11,8 +11,11 @@ freeradius (1.0.5-0) unstable; urgency=low
     even though we don't build them in the Debian archive.
     (Thanks to Luca Landi for the patch)
     - Created 06_libtool14_vs_rlm_eap_tls
+  * Fix ownership of files in /var/log/freeradius/ more efficiently
+    (Caught by Guido Trotter)
+    Closes: #326891
 
- -- Paul Hampson <Paul.Hampson@anu.edu.au>  Sun, 21 Aug 2005 00:52:27 +1000
+ -- Paul Hampson <Paul.Hampson@anu.edu.au>  Wed,  7 Sep 2005 01:08:07 +1000
   
 freeradius (1.0.4-2) unstable; urgency=low
 
index ca16294..7be1fc1 100755 (executable)
@@ -38,7 +38,7 @@ case "$1" in
 
        find /etc/freeradius -type f -exec chgrp freerad {} \; -exec chmod 640 {} \;
        find /etc/freeradius -type d -exec chgrp freerad {} \; -exec chmod 2750 {} \;
-       find /var/log/freeradius -exec chown freerad {} \; -exec chgrp freerad {} \;
+       find /var/log/freeradius \( ! -user freerad -o ! -group freerad \) -exec chown freerad:freerad {} \;
 
        if [ "$2" = "" ] ; then
                action="start"