From a695404c36951b0793369a11ff9a9d110b15dbb1 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Fri, 4 May 2012 20:36:04 +0200 Subject: [PATCH] Fix rights of files generated by UCF. Closes: #671474. --- debian/changelog | 1 + debian/roundcube-core.postinst | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index f4b2add..91fb53e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,7 @@ roundcube (0.7.2-2) UNRELEASED; urgency=low * Rotate /var/log/roundcube/session. Closes: #671472. + * Fix rights of files generated by UCF. Closes: #671474. -- Vincent Bernat Fri, 04 May 2012 18:58:34 +0200 diff --git a/debian/roundcube-core.postinst b/debian/roundcube-core.postinst index f07f3d3..36457be 100644 --- a/debian/roundcube-core.postinst +++ b/debian/roundcube-core.postinst @@ -75,6 +75,7 @@ EOF CONFFILE=/etc/roundcube/main.inc.php touch $CONFFILE.ucftmp chmod 640 $CONFFILE.ucftmp + chown root:www-data $CONFFILE.ucftmp db_get roundcube/hosts || true hosts="$RET" @@ -119,8 +120,9 @@ EOF done >> $CONFFILE.ucftmp ucf --debconf-ok $CONFFILE.ucftmp $CONFFILE - chown root:www-data $CONFFILE - rm -f $CONFFILE.ucftmp + chown root:www-data $CONFFILE + [ ! -f $CONFFILE.dpkg-dist ] || chown root:www-data $CONFFILE.dpkg-dist + rm -f $CONFFILE.ucftmp # Handle webserver reconfiguration/restart ; stolen from zabbix package db_get roundcube/reconfigure-webserver || true -- 2.39.2