Skip to content

Commit

Permalink
fixing rights of /var/lib/mailman/archives/private
Browse files Browse the repository at this point in the history
  • Loading branch information
vincib committed Mar 13, 2016
1 parent b9dc7f3 commit 088df95
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
32 changes: 32 additions & 0 deletions debian/alternc-mailman.postinst
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/bin/bash

set -e

# Source debconf library.
. /usr/share/debconf/confmodule

CONFIGFILE="/etc/alternc/local.sh"
LOGROTATE="/etc/logrotate.d/roundcube-core"

case "$1" in
configure)

# since alternc uses apache itk, the Unix user running the webserver
# may not always be www-data.
# as a result, we must open the rights to read on /var/lib/mailman/archives/private to everybody

dpkg-statoverride --list /var/lib/mailman/archives/private >/dev/null ||
dpkg-statoverride --add root list 2775 /var/lib/mailman/archives/private
chmod 2775 /var/lib/mailman/archives/private

echo "**********************************************"
echo "* ALTERNC-MAILMAN: *"
echo "* Please run alternc.install to fully deploy *"
echo "**********************************************"
;;

esac

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
#DEBHELPER#
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
alternc-mailman (3.1.3) oldstable; urgency=low

* fix the rights on /var/lib/mailman/archives/private for apache-mpm-itk

-- Benjamin Sonntag <benjamin@sonntag.fr> Sun, 13 Mar 2016 17:32:33 +0100

alternc-mailman (3.1.2) oldstable; urgency=low

* fix using our own binaries for /usr/lib/cgi-bin/mailman (ugly but working)
Expand Down

0 comments on commit 088df95

Please sign in to comment.