Commit Graph

90 Commits

Author SHA1 Message Date
Antoine Beaupré d09637d0ce send email on new account creation 2009-01-29 00:54:52 +00:00
Antoine Beaupré a7034d7779 add notes field to members 2009-01-29 00:40:49 +00:00
Antoine Beaupré d5a5a929a6 move sessions to a shared /var/alternc/sessions 2008-10-31 17:55:06 +00:00
Antoine Beaupré f47b431596 configure alternc-slave as a primary MX for the main server
this aims to resolve a lot of mail problems we are having on our deployment at Koumbit
2008-10-23 18:37:40 +00:00
Antoine Beaupré 2363fe5b47 fix apache restart sequence so they don't get restarted twice and only if necessary 2008-10-07 20:14:15 +00:00
Antoine Beaupré 7e8e9b1d6c put the listen directive in the apache2-ssl config 2008-10-07 18:39:44 +00:00
Antoine Beaupré b1a6bcf43e create a apache2-specific SSL configuration file 2008-10-07 18:34:02 +00:00
Antoine Beaupré c39d6991bf configure SSL properly, that is, only if a certificate is provided 2008-10-07 18:28:39 +00:00
Antoine Beaupré 72328a9f4b configure SSL on apache2 2008-10-07 18:00:06 +00:00
Antoine Beaupré 57b53fe31b disable the default site in apache2 since it obstructs our configuration 2008-10-07 17:23:09 +00:00
Antoine Beaupré 0184e3c641 move the apache config code into alternc.install
this makes sure that apache is properly restarted after install and factors code out of the two postinst files
2008-10-07 17:21:18 +00:00
Antoine Beaupré 4df0af8571 call mysql properly in upgrade_check so that upgrade scripts are called properly
Closes: #1078
2008-10-07 16:49:05 +00:00
Antoine Beaupré d7ad37bc9e restart the proper apache in locale regeneration script 2008-10-07 16:10:59 +00:00
Antoine Beaupré 3bcb5159f9 stop overwriting named.conf
starting this release, only named.conf.options will be replaced (as we
need to modify the options {} block and can't just add another one). We
still install a named.conf, a fresh version from Lenny this time, so
that we get a clean start.

Also get rid of the bind_internal parameter that is not really used or
recommended, as it allows for authoritative nameservers to also serve
recursive queries (which is bad practice).

See: #1025
Closes: #1104
2008-10-06 23:58:04 +00:00
Antoine Beaupré e6c66c2d8a remove 2GB quota limitation
Closes: #1129
2008-10-06 23:27:17 +00:00
Antoine Beaupré 9a79f43537 fix parameter expansion in postconf
See: #1029
2008-10-06 22:48:58 +00:00
Antoine Beaupré ca6dfe5d83 don't warn on main.cf configuration changes 2008-10-06 22:21:37 +00:00
Antoine Beaupré 704bc022ec explicitely backup main.cf configuration even though we don't replace
it totally

See: #1029
2008-10-06 22:20:48 +00:00
Antoine Beaupré 77ddb5002f do not override Postfix's main.cf: instead, we use a /etc/alternc/postfix.cf to hold our configuration changes and apply that on postinst.
Closes: #1029
2008-10-06 22:12:41 +00:00
Antoine Beaupré cdb3a1e281 remove alternc/mynetwork debconf parameter, stop overriding it in
postfix

also split the config prompts between slave and non-slave package

See: #1029
2008-10-06 21:13:11 +00:00
Antoine Beaupré 66da56d2df always run tar in C locale so that grep works properly 2008-10-04 18:54:03 +00:00
Antoine Beaupré 0de778c41c move basedirprot call to postinst also 2008-10-04 16:50:14 +00:00
Antoine Beaupré 270c7a6e37 move /var/alternc-specific commands from alternc.install to postinst 2008-10-04 16:48:30 +00:00
Antoine Beaupré 8f43b19340 security precaution: leave the my.cnf readable only to the webserver. we're protected by the openbasedir 2008-07-10 21:37:29 +00:00
Antoine Beaupré cf484070de remove a bashism: don't use the function keyword to declare functions,
it's not POSIX.

Note that there might be some other bashisms around, but this is the
only one I am aware of now, so...

Closes: #1122
2008-04-24 15:35:33 +00:00
Antoine Beaupré 30057bba56 add a [mysql] block to our my.cnf that contains the database= settings
so that mysqldump and other utilities using this file don't get a
warning.

Note that we do not convert existing configuration so that
milestone:0.9.8 installs will have to be manually patched to remove
the warning on mysqldump.

See #1127 and ["Errata_0.9.8"].
2008-04-24 15:24:41 +00:00
Antoine Beaupré 115fe16dbf use the proper variable for database user replacement. Closes: #1124 2008-04-17 23:04:26 +00:00
Antoine Beaupré c92074b1e6 document that mysql.sh needs MYSQL_CLIENT 2008-04-15 15:07:14 +00:00
Antoine Beaupré 7cfa0db5ed fix mysql.cnf regexp for a last time, i hope 2008-04-14 03:22:10 +00:00
Antoine Beaupré becf621bb4 fix quoting again 2008-04-14 03:14:25 +00:00
Antoine Beaupré 21f2254a00 be more verbose in template expansion 2008-04-14 03:10:58 +00:00
Antoine Beaupré 6bedb59def last minute fix: fix template instantiation for mysql passwords 2008-04-14 03:01:13 +00:00
Antoine Beaupré d5a4c72e4a Major redesign of the MySQL backend interface to fix a security issue.
See: #318.

As of now, the MySQL configuration used everywhere by AlternC is not
stored in the main configuration file (/etc/alternc/local.sh) but in a
MySQL configuration file in /etc/alternc/my.cnf, which enables us to
call mysql without exposing the password on the commandline.

The changes here are quite invasive but will allow us to factor out
the MySQL configuration better. See #364.

This includes a partial rewrite of the mysql.sh logic, which is now ran
from the postinst script (and not alternc.install) which will allow us
to actually change the MySQL root user properly. See #601.

This commit was tested like this:

 * clean install on etch (working)
 * upgrade from a clean 0.9.7 (working)
2008-04-13 04:35:19 +00:00
Antoine Beaupré 73b7746f58 add missing configuration that wasn't ran properly when installing, since initrep.sh was removed from the installation at some point. remove initrep.sh altogether since it's not required anymore. Closes: #1109. 2008-04-10 19:30:59 +00:00
Antoine Beaupré 21935b9c57 attempt to fix bug #1109 by explicitely creating the sasl directory 2008-04-10 18:52:23 +00:00
Antoine Beaupré e8caebb01f add trivial code to display an RSS feed on the home page of users, feed can be changed in the variables panel 2008-02-01 23:03:53 +00:00
Antoine Beaupré 62cd8a201b fix typo 2007-12-12 22:16:17 +00:00
Antoine Beaupré a035c95f98 reverting part of [1994]: keep on calling apache restart properly 2007-10-05 15:46:24 +00:00
Pierre Gilles Mialon 75e2f1cba1 Another fix to allow alternc to consider the php5 in an apache2 environnement
AlternC isn't ready to be install in an apache2 only environnement 

- proftd depend on apache-ssl
- the link are built by the deb package and if /etc/apache(-ssl)/conf.d didn't exist the installation failed ...
2007-10-05 14:46:40 +00:00
Pierre Gilles Mialon 03038d18dd Suppress an usueless restart of apache in dopo.sh
This chek is althought apache 1.3 dependent.

Modify the check before enabling the modules for apache2. Now it show be possible to perform an aptitude install apache2 php5 alternc ... 

I hope :)
2007-10-05 14:31:05 +00:00
Antoine Beaupré 4381c97bdb use dpkg-statoverride instead of hardcoding config, because it will be replaced on saslauthd restarts. See: #1069. Closes: #684 2007-10-02 17:37:47 +00:00
Antoine Beaupré 217662a8a1 fix ownership of saslauthd directory. Closes: #1069 2007-10-02 17:34:09 +00:00
Benjamin Sonntag 251cb7db6d restart with stop/start instead of restart (...) apache AND apache2 (test) 2007-09-27 08:29:11 +00:00
Benjamin Sonntag df3b3b0769 ensure that php variable is correctly expanded 2007-09-27 08:18:50 +00:00
Antoine Beaupré 6d36e8722f fix php call. Closes: #1064 2007-09-11 21:55:55 +00:00
Antoine Beaupré 4be66099c0 try to rely on the actual .so presence instead of the package for libapache-mod-php* 2007-09-09 20:48:42 +00:00
Antoine Beaupré 06fe7d5e98 remove useless test -x for init.d services, invoke-rc.d takes care of that 2007-09-09 20:32:16 +00:00
Antoine Beaupré 233397e37a try to reload apache2 too, install symlinks for apache2 if available 2007-09-09 20:31:35 +00:00
Antoine Beaupré 1908e3bf27 fix stupid typo in regexp
See: #1062
2007-09-09 19:37:08 +00:00
Antoine Beaupré d6cbfcb1ce first attempt at making alternc apache2-compatible
revert to manual configuration of modules.conf since apache-modconf doesn't really work
move apache-ssl to recommends since it has no equivalent in the apache2 world
2007-09-09 19:17:45 +00:00