Commit Graph

375 Commits

Author SHA1 Message Date
Benjamin Sonntag bb3bd0b14c [enh] ssl : reload-certs for sysadmin + misc ssl fixes (including set_variables) 2018-06-24 17:04:55 +02:00
Benjamin Sonntag d13d093c09 [fix] misc ssl code issues 2018-06-23 17:13:36 +02:00
Benjamin Sonntag f9d2c783e5 [fix] alternc-ssl + dom global missing 2018-06-23 17:11:57 +02:00
Benjamin Sonntag 719e1539b0 [fix] renaming update_certs, fixing deprecated usage of 2018-06-23 16:54:54 +02:00
Benjamin Sonntag ac841451bc [enh] ssl class should work now, including system certificates and auto renewal of vhosts etc. 2018-06-23 16:28:50 +02:00
Benjamin Sonntag 8232c1a318 [enh] moving hosting_vhost-ssl.sh to be launched systematically by update_domains.sh, and renamed to update_cert.sh 2018-06-23 14:59:38 +02:00
azerttyu 81f440d2b4 [fix] On install process we must execture ssl feature 2018-06-22 15:21:07 +02:00
Benjamin Sonntag 7ec1d068c8 [enh] ssl start of implementation 2018-06-22 11:24:03 +02:00
Benjamin Sonntag f114a66d91 Merge remote-tracking branch 'origin/pr-239'
Fix #222: Replace mysql_* with mysqli_* #239
2018-06-21 17:44:32 +02:00
Benjamin Sonntag c88db87db3 Merge branch 'stable-3.1' 2018-06-21 17:36:34 +02:00
Kienan Stewart e2edab6364 Add trailing slash to VHOST_DIR when building vhosts_all.conf
If VHOST_DIR is a symbolic link to another folder, no files will be found,
resulting in an empty vhosts_all.conf. A trailing slash ensures find will
properly resolve the symbolic link before searching.
2018-06-21 17:35:13 +02:00
cam.lafit c8d94d2a50 SSL massive backport
* Now we integrate all alternc-feature in native alternc
* Files are backported as waiting by alternc
* Some files was renammed or moved to follow alternc installation
process
2018-06-21 17:26:27 +02:00
Kienan Stewart 1c910f4448 Remove trailing spaces / tabs from quota_init 2018-05-17 17:58:38 -04:00
Kienan Stewart be8edc140d Include connection parameter when calling mysqli_query 2018-05-17 17:57:32 -04:00
Kienan Stewart 29a213cc26 Change function calls from mysql_* to mysqli_*
Sourced from: https://raw.githubusercontent.com/soul9/AlternC/470ed9cd1535461c7a809ce6c8d55919b76f14a0/stretch/quota_init.diff

@see https://github.com/AlternC/AlternC/issues/222
2018-05-17 15:15:56 -04:00
azerttyu 177d76bd85 Revert "adding sync-unix-accounts.php, synchronize unix accounts with AlternC ones. not enabled by default, not even installed yet"
* We revert this commit as it's provided by an AlternC plugin
* Report to https://github.com/alternc/alternc-nss to get more informations

Note : This reverts commit 240a7738fc.
2018-04-30 10:47:12 +02:00
Benjamin Sonntag 240a7738fc adding sync-unix-accounts.php, synchronize unix accounts with AlternC ones. not enabled by default, not even installed yet 2018-03-29 12:34:05 +02:00
Benjamin Sonntag 13144a162a fixing spoolsize to handle deleted DB 2018-02-28 17:32:52 +01:00
Benjamin Sonntag 24b37b2777 [fix] fixing utility scripts to use PDO instead of mysql_query (php7 compatibility for stretch) 2018-02-23 16:24:30 +01:00
Guillaume Barbe 7b5226363e Corrigé le répertoire de validation des templates avant effacement 2018-01-17 15:39:10 -05:00
azerttyu 864e5daee7 [enh] Notify dns hook when any change is done to any domain
* When a domain is updated, added or removed we notify wich domain is
concerned
2017-10-08 16:26:56 +02:00
alban 71af846c11 [fix] spoolsize du should be in summary mode 2017-10-08 10:42:17 +02:00
alban f6db9e263a [fix] Cleans up the removal of du.pl 2017-10-08 09:15:37 +02:00
alban e6377f0b98 [fix] The legacy du.pl script should be replaced by /usr/bin/du in spoolsize.php
Turns out quotas were broken due to a header in du.pl

  printf "FIXME: do not work with Debian Compliance";
  exit(1);

The script is therefore unusable and useless now.
2017-10-08 09:05:53 +02:00
azerttyu cf949cf245 Forgot Heredoc syntax
In php no more required to use heredoc and done some linter headache
2017-10-07 12:19:43 +02:00
Benjamin Sonntag 8dac9a499d [doc] misc doc translation fr>en 2017-10-06 22:52:37 +02:00
km add27f014d Provide an alternc LogFormat in any case
We must provide an apache log when any domain are set as an fresh
installaton
2017-10-06 18:38:51 +02:00
quenenni 5e0d4e8dc7 système de quota - quota Vs du.pl + affichage des quotas pour les utilisateurs 2017-08-17 21:32:21 +02:00
Benjamin Sonntag 57b0402875 DON'T delete vhost file when deleting a non-vhost-based domaine-type sub_domain. fixes #138 2017-08-14 10:09:14 +02:00
Benjamin Sonntag dee8d6f1b8 delete alias too when deleting pop/imap accounts, fixes #165 2017-08-12 16:54:31 +02:00
Benjamin Sonntag 3a3168c69f [fix] fixing ACL issues with NFS and ITK not being able to read .htaccess Known bug of ITK. Fixes #104 2016-08-09 16:06:17 +02:00
Remi e32e8837c0 bug fix: unknown mysql expression "insert or replace" 2016-07-15 17:09:49 +02:00
Remi 900af760ff bug fix: typo in do_actions.php (return_var returned when return_val expected) fixes #109 2016-07-14 21:13:25 +02:00
Remi 5d3dfb2a11 Bug fix: Error in function get_variable_from_db 2016-07-06 22:21:34 +02:00
Benjamin Sonntag b1ca1d88ae fixing PDO for MySQL class and spoolsize (adding exec() for direct queries, manage properly query() call without arguments (no prepare, allow show database) 2016-05-18 18:00:04 +02:00
Benjamin Sonntag 369ab3bf34 [security] using prepared query for scripts too 2016-05-17 18:44:21 +02:00
Benjamin Sonntag 10e006bdbe [security] fixing DO_ACTIONS.PHP for REALPATH. 2016-05-17 18:12:57 +02:00
Benjamin Sonntag 82e81b255b removing all reference to .svn / svn in makefile 2016-05-17 15:28:18 +02:00
Remi 170114cdf8 forgotten file to fix #48 (fixperms_mail.sh) 2016-04-27 17:58:27 +02:00
Remi 714cfc16d8 bug fixes #65, domain seen as regexp 2016-03-01 11:36:46 +01:00
Remi 604592eedd bug fixes in ACL, wildcard on vhost, and some sql bug 2016-02-22 15:52:55 +01:00
Antoine Beaupr�� d15a16ef23 don't try to delete the logs directory
without this, the logs/ directory was found as old and this cronjob would try to delete it over and over again, generating spurious emails
2016-02-03 16:15:02 +01:00
Benjamin Sonntag 77199b9788 adding PATH to update_domains, prevent ligne162: service : commande introuvable 2016-01-25 17:14:48 +01:00
Benjamin Sonntag 0f456d247b trying to fix infinite loop of do_actions.sh by removing INCROND file 2015-11-16 08:49:52 +01:00
Benjamin Sonntag 4ea198a6fb moving opendkim restart to the END of update_domains, prevent multiple restart 2015-11-16 08:29:13 +01:00
Benjamin Sonntag a45c3777f3 fixing #17 PATH missing in slave_dns 2015-11-05 17:36:25 +01:00
Benjamin Sonntag fe19ac334d adding a restart of opendkim when adding/removing a domain: Fixes #11 2015-09-25 18:06:27 +02:00
Benjamin Sonntag 666d485da7 adding NFS_QUOTA=no to local.sh => default is now to NOT enable NFS-based quota 2015-04-29 12:02:37 +02:00
Benjamin Sonntag b2dca9d915 [fix] some exec() didn't have escapeshellarg() as needed 2014-11-27 14:51:51 +01:00
Benjamin Sonntag f0b20a2a22 removing unused cron_users_doit script 2014-11-25 14:46:22 +01:00