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  # add alternc-roundcube user for php-itk special rights
15  if ! getent passwd alternc-roundcube; then
16  useradd -g nogroup -u 1996 alternc-roundcube -d /usr/share/roundcube
17  fi
18 
19  # removed from 3.1 & 3.2 :
20  dpkg-statoverride --list /var/lib/roundcube/temp >/dev/null &&
21  dpkg-statoverride --remove /var/lib/roundcube/temp
22  chown -R www-data:root /var/lib/roundcube/temp
23  chmod -R 750 /var/lib/roundcube/temp
24 
25  dpkg-statoverride --list /etc/roundcube/debian-db.php >/dev/null &&
26  dpkg-statoverride --remove /etc/roundcube/debian-db.php
27  chown -R www-data:root /etc/roundcube/debian-db.php
28  chmod -R 460 /etc/roundcube/debian-db.php
29 
30  dpkg-statoverride --list /etc/roundcube/config.inc.php >/dev/null &&
31  dpkg-statoverride --remove /etc/roundcube/config.inc.php
32  chown -R www-data:root /etc/roundcube/config.inc.php
33  chmod -R 460 /etc/roundcube/config.inc.php
34 
35  dpkg-statoverride --list /var/log/roundcube >/dev/null &&
36  dpkg-statoverride --remove /var/log/roundcube
37  chown -R www-data:root /var/log/roundcube
38  chmod -R 750 /var/log/roundcube
39 
40  echo "**********************************************"
41  echo "* ALTERNC-ROUNDCUBE: *"
42  echo "* Please run alternc.install to fully deploy *"
43  echo "**********************************************"
44  ;;
45 esac
46 
47 # dh_installdeb will replace this with shell code automatically
48 # generated by other debhelper scripts.
49 #DEBHELPER#