Subject: nginx update doesn't preserve perms on log files
Package: nginx-common
Version: 1.1.14-1
Severity: wishlist
Tags: patch

*** Please type your report below this line ***

nginx-common.postinst is doing a chown & chmod on /var/log/nginx/* on each 
upgrade. Is it
really usefull ? I have others owners & perms on these logs and I wish that 
updates let them as
they are, like others packages do.

May I suggest this patch on nginx-common.postinst (chown & chmod only with 
mkdir) :

@@ -7,10 +7,10 @@
     # Ensure existance and right state of log files and directory
     if [ ! -d "$logdir" -a ! -L "$logdir" ]; then
       mkdir "$logdir"
+      chown www-data:adm $logdir
+      chmod 0750 $logdir
     fi
-    chown -R www-data:adm $logdir
-    chmod 0750 $logdir
-    find $logdir -type f -exec chmod 0640 {} +;
     ;;




-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to