Alternc  latest
Alternc logiel libre pour l'hébergement
alternc-roundcube.postinst
Go to the documentation of this file.
1 #!/bin/bash
2 
3 set -e
4 
5 # Source debconf library.
6 . /usr/share/debconf/confmodule
7 
8 CONFIGFILE="/etc/alternc/local.sh"
9 LOGROTATE="/etc/logrotate.d/roundcube-core"
10 
11 case "$1" in
12  configure)
13 
14  # removed from 3.1 & 3.2 :
15  dpkg-statoverride --list /var/lib/roundcube/temp >/dev/null &&
16  dpkg-statoverride --remove /var/lib/roundcube/temp
17  chown -R www-data:root /var/lib/roundcube/temp
18  chmod -R 750 /var/lib/roundcube/temp
19 
20  dpkg-statoverride --list /etc/roundcube/debian-db.php >/dev/null &&
21  dpkg-statoverride --remove /etc/roundcube/debian-db.php
22  chown -R www-data:root /etc/roundcube/debian-db.php
23  chmod -R 460 /etc/roundcube/debian-db.php
24 
25  dpkg-statoverride --list /etc/roundcube/config.inc.php >/dev/null &&
26  dpkg-statoverride --remove /etc/roundcube/config.inc.php
27  chown -R www-data:root /etc/roundcube/config.inc.php
28  chmod -R 460 /etc/roundcube/config.inc.php
29 
30  dpkg-statoverride --list /var/log/roundcube >/dev/null &&
31  dpkg-statoverride --remove /var/log/roundcube
32  chown -R www-data:root /var/log/roundcube
33  chmod -R 750 /var/log/roundcube
34 
35  echo "**********************************************"
36  echo "* ALTERNC-ROUNDCUBE: *"
37  echo "* Please run alternc.install to fully deploy *"
38  echo "**********************************************"
39  ;;
40 esac
41 
42 # dh_installdeb will replace this with shell code automatically
43 # generated by other debhelper scripts.
44 #DEBHELPER#