adding postinst for squirrelmail + user alternc-squirrelmail + statoverride for /var/lib/squirrelmail and /var/spool/squirrelmail
This commit is contained in:
parent
a1b33c1ce1
commit
5df2cb4e98
|
@ -383,6 +383,7 @@ debian/alternc-slave.postrm -text
|
|||
debian/alternc-slave.prerm -text
|
||||
debian/alternc-slave.templates -text
|
||||
debian/alternc-squirrelmail.dirs -text
|
||||
debian/alternc-squirrelmail.postinst -text
|
||||
debian/alternc.config -text
|
||||
debian/alternc.cron.d -text
|
||||
debian/alternc.dirs -text
|
||||
|
|
|
@ -0,0 +1,22 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
# Source debconf library.
|
||||
. /usr/share/debconf/confmodule
|
||||
|
||||
CONFIGFILE="/etc/alternc/local.sh"
|
||||
|
||||
case "$1" in
|
||||
configure)
|
||||
|
||||
# add alternc-squirrelmail user for php-itk special rights
|
||||
if ! getent passwd alternc-squirrelmail; then
|
||||
useradd -g alternc-squirrelmail -u 1997 alternc-squirrelmail -d /usr/share/squirrelmail -m
|
||||
fi
|
||||
dpkg-statoverride --add alternc-squirrelmail root 0750 /var/spool/squirrelmail/attach /usr/lib/squirrelmail/data
|
||||
chown -R alternc-squirrelmail:root /var/spool/squirrelmail/attach /usr/lib/squirrelmail/data
|
||||
chmod -R 750 /var/spool/squirrelmail/attach /usr/lib/squirrelmail/data
|
||||
;;
|
||||
esac
|
||||
|
|
@ -240,9 +240,6 @@ EOF
|
|||
# Apache will not start without this file
|
||||
touch /var/alternc/apache-vhost/vhosts_all.conf
|
||||
|
||||
#squirrelmail fix
|
||||
chown -R :alterncpanel /var/lib/squirrelmail/data
|
||||
chmod -R g+w /var/lib/squirrelmail
|
||||
#sudo stuff allowing alterncpanel to use quota
|
||||
if [ -d /etc/sudoers.d ]; then
|
||||
cp /etc/alternc/alternc-sudoers /etc/sudoers.d/alternc-sudoers
|
||||
|
|
|
@ -39,7 +39,7 @@ Description-fr.UTF-8: Suite logicielle d'hébergement mutualisé pour Debian
|
|||
Package: alternc-slave
|
||||
Architecture: all
|
||||
Pre-depends: debconf (>= 0.5.00) | debconf-2.0
|
||||
Depends: debianutils (>= 1.13.1), apache2-mpm-itk, libapache2-mod-php5, php5-mysql, phpmyadmin, postfix, proftpd-mod-mysql, proftpd-basic, squirrelmail, postfix-tls, bind9, wget, rsync, quota, ca-certificates, locales, perl-suid, perl, postfix-mysql, wwwconfig-common, sasl2-bin, libsasl2-modules, php5-cli, lockfile-progs (>= 0.1.9), gettext (>= 0.10.40-5), adduser, mysql-client, sudo, acl, dovecot-common (>= 1:1.2.15), dovecot-imapd, dovecot-pop3d
|
||||
Depends: debianutils (>= 1.13.1), apache2-mpm-itk, libapache2-mod-php5, php5-mysql, phpmyadmin, postfix, proftpd-mod-mysql, proftpd-basic, postfix-tls, bind9, wget, rsync, quota, ca-certificates, locales, perl-suid, perl, postfix-mysql, wwwconfig-common, sasl2-bin, libsasl2-modules, php5-cli, lockfile-progs (>= 0.1.9), gettext (>= 0.10.40-5), adduser, mysql-client, sudo, acl, dovecot-common (>= 1:1.2.15), dovecot-imapd, dovecot-pop3d
|
||||
Recommends: dovecot-managesieved, dovecot-sieve, dovecot-mysql
|
||||
Conflicts: alternc-admintools, alternc-awstats (<= 0.3.2), alternc-webalizer (<= 0.9.4), alternc, courier-authdaemon
|
||||
Provides: alternc
|
||||
|
@ -74,8 +74,8 @@ Description-fr.UTF-8: Suite logicielle d'hébergement mutualisé pour Debian
|
|||
|
||||
Package: alternc-squirrelmail
|
||||
Architecture: all
|
||||
Pre-depends: debconf (>= 0.5.00) | debconf-2.0
|
||||
Depends: debianutils (>= 1.13.1), alternc (>= 1.1), squirrelmail, squirrelmail-locales, avelsieve
|
||||
Pre-depends: debconf (>= 0.5.00) | debconf-2.0, alternc (>= 1.1)
|
||||
Depends: debianutils (>= 1.13.1), squirrelmail, squirrelmail-locales, avelsieve
|
||||
Conflicts: alternc (<= 1.0.3)
|
||||
Provides: alternc-webmail
|
||||
Suggests:
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
|
||||
Alias /squirrelmail /usr/share/squirrelmail
|
||||
Alias /javascript /usr/share/javascript-common
|
||||
Alias /squirrel /usr/share/squirrelmail
|
||||
Alias /javascript /usr/share/javascript
|
||||
|
||||
|
|
|
@ -32,10 +32,8 @@ then
|
|||
. /usr/lib/alternc/functions.sh
|
||||
|
||||
echo "Setting squirrelmail as default webmail"
|
||||
mysql_query "REPLACE INTO variable SET name='webmail_redirect', value='squirrelmail', comment='Set it to the name of your preferred webmail, /webmail will point to it';"
|
||||
mysql_query "INSERT IGNORE INTO variable SET name='webmail_redirect', value='squirrel', comment='Set it to the name of your preferred webmail, /webmail will point to it (squirrel, rc...)';"
|
||||
echo "Done"
|
||||
|
||||
fi
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue