Antoine Beaupré
3cbd94f5f6
correctly declare functions, we were missing parenthesis
2008-04-24 16:10:27 +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é
099ac1f32f
Properly specify the database to backup in the mysql dump script by
...
reverting a tiny part of [2117].
Closes : #1127
2008-04-24 15:17:07 +00:00
Antoine Beaupré
8aca1730ec
use absolute path for awk in trying to bring back quotas. See #1008
2008-04-15 21:31:06 +00:00
Antoine Beaupré
8b3cc89ab4
remove .cvsignore file
2008-04-15 15:08:02 +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é
7c467be6d5
don't add the openbasedir protection on webmail. Closes : #1080
2007-11-15 20:30:17 +00:00
Antoine Beaupré
a478703bb4
normalise the url given so that users redirecting to http://example.com don't have problems. Closes : #1079
2007-11-15 19:21:31 +00:00
Antoine Beaupré
74a3d9702a
silence 'zone reload queued' messages from newest bind from etch
2007-10-04 23:53:44 +00:00
Antoine Beaupré
33cad01397
use more standard mode 750 instead of 754
2007-09-09 21:00:21 +00:00
Antoine Beaupré
29812ce3dd
fix install modes for functions
2007-09-09 20:59:48 +00:00
Benjamin Sonntag
1ead7e1bbb
Fixing dns/nodns issue (a bug in update_domains) Fixes #772
2007-09-09 20:01:34 +00:00
Antoine Beaupré
9a4162f508
retirer la fonction dupliquee init_dom_letter, remplaceee par print_domain_letter. utiliser print_user_letter au lieu code custom
2007-09-09 18:35:15 +00:00
Antoine Beaupré
9afbeb6015
move functions from update_domains.sh into common functions
2007-09-09 18:21:57 +00:00
Antoine Beaupré
71ff7726dc
don't forget to add functions.sh
2007-09-09 18:18:53 +00:00
Antoine Beaupré
4b68e501bb
move functions to a common directory to avoid code duplication
2007-09-09 18:18:19 +00:00
Benjamin Sonntag
8a0cbf415d
url are now not / : Fixes #1054
2007-08-26 20:41:32 +00:00
Benjamin Sonntag
22fefe0407
correction des templates + modifs légères de dépendances pour lintian ...
2007-08-26 19:24:36 +00:00
Antoine Beaupré
675a357932
remove the size_db cache, it wasn't used in the code and is fully accessible from the PHP/MySQL API
2007-08-21 00:14:13 +00:00
Antoine Beaupré
7a0f1d57c4
use absolute path for df
...
Closes : #1048
2007-05-31 17:03:47 +00:00
Nahuel Angelinetti
27c70f2047
Comme php5 peut etre installé, nous utilisons le lien php qui pointe soit vers php5 soit vers php4 ( soit php6 ? ).
...
close : #1042
2007-04-18 16:55:34 +00:00
Antoine Beaupré
aba66668b4
skip non-existent directories so that misconfigured backups don't break other user's backups
2007-04-06 18:02:22 +00:00
Antoine Beaupré
005d6379c2
Fix a race condition in update_domaines.sh that could allow users to
...
bypass open_basedir protections when creating domains. Reported by
jerome.
This required changing basedir_prot's behavior so that it creates the
protection even if the symlink doesn't exist, which might create extra
files that are not necessary, but "better be safe than sorry". We
could also fix this in a subsequent release.
2007-01-12 23:03:33 +00:00
Rémi
3b3341f6dd
modification de l'appel systeme à chown, en appel au chown builtin
2007-01-04 16:12:21 +00:00
Antoine Beaupré
de174073c2
fix typo in last commit: it the dot that forbidden on start
2006-11-29 04:07:20 +00:00
Antoine Beaupré
354e38675b
remove quotemeta everywhere, and make sure variables are safe before using them. Closes : #1003
2006-11-29 04:02:41 +00:00
Antoine Beaupré
7be721c3ff
faire que wc marche aussi avec le chemin absolu
2006-11-28 02:20:50 +00:00
Antoine Beaupré
6e63ed701b
use same regexp for allowed usernames as in the php code
...
(m_admin::add_mem())
do not quote_meta in shell command, since all variables are now
considered safe
see #998
see #427
2006-11-28 00:56:51 +00:00
Antoine Beaupré
c6109e63ea
use absolute path otherwise this fails on install, see #998
2006-11-28 00:49:12 +00:00
Antoine Beaupré
7b9d3e8007
change proper ip even if modifying TLD, closes : #661
2006-06-23 04:05:39 +00:00
Antoine Beaupré
26f5de3d51
ne plus créer les sous-domaines par défaut a la creation d'un domaine dans update_domaines, m_dom.php:add_domain() s'en charge déjà. Closes : #719
2006-06-23 03:12:26 +00:00
Nahuel Angelinetti
8c6c5124af
Demande du all pour le make install supprimé car nous n'avons plus rien à compiler
...
References: #704
2006-05-29 18:16:11 +00:00
Antoine Beaupré
d7f9155db1
rendre apachectl silencieux, autrement on voit des messages à chaque invocation
2006-05-17 18:28:38 +00:00
Benjamin Sonntag
ae1af23a4b
Ajout du script fixperms.sh qui permet de remettre à plat les permissions et proprietaires des fichiers. Ref #416
2006-05-16 18:20:14 +00:00
Benjamin Sonntag
f4c3ad85e0
ajout des perl suid scripts (desole, j'avais oublie...)
2006-05-12 11:17:23 +00:00
Benjamin Sonntag
da63874904
Remplacement des scripts C setuid par des scripts perl, AlternC is now arch indep \!
2006-05-11 10:52:23 +00:00
Benjamin Sonntag
4935954567
plantage de sqlbackup du fait des 'mv' qui peuvent echouer et du set -e
2006-05-04 16:59:18 +00:00
Benjamin Sonntag
80c65668a9
plantage de sqlbackup du fait des 'mv' qui peuvent echouer et du set -e
2006-05-04 16:42:14 +00:00
Benjamin Sonntag
ec89f13dfc
quota_edit.sh now computes DATA_PART as quota_get.sh does. Closes #651
2006-05-04 01:53:08 +00:00
Rémi
b249ce75f9
do not forget to commit your final work in order to not have a broken version in the repository
2006-05-01 08:16:12 +00:00
Rémi
b814ec769f
ajout du nom du shell pour le script
2006-05-01 08:11:38 +00:00
Benjamin Sonntag
4e444d92e0
Adding spoolsize to cache the size of web / mail / db contents, Closes 569
2006-04-26 14:26:21 +00:00
Pierre Gilles Mialon
6ca8255f49
AlternC Plugin are now part of AlternC svn repository\n Migration Phase 2
2006-04-26 12:28:53 +00:00