Commit Graph

482 Commits

Author SHA1 Message Date
Kienan Stewart ad1940201b Pass SED_SCRIPT to install.d scripts for templating action 2024-01-25 18:11:08 +01:00
Kienan Stewart cbfbb0c21a Use mktemp to get the filename for storing the templating script
Using a fixed string could allow for abuse by anyone who has access to /tmp.
One could place a symbolic link to any file to cause it to be overwritten
when alternc.install is run.
2024-01-25 18:10:34 +01:00
Camille Lafitte 9723969017 Fix #247
* Missing backport from koumbit/pu
2023-11-03 10:04:35 +01:00
Camille Lafitte 432f32d98a Fix about #337
* sql update was missing during backport action
* close #337
2023-11-02 18:48:35 +01:00
Kienan Stewart 63b19754b5 Set alterncpanel as group owner of mysql configuration on install
Fixes #504
2023-09-29 10:53:21 +02:00
Nina f56809fd8a Append changes instead of overriding
close #428
2023-09-28 09:16:41 +02:00
Nina 7e05910237 Adding compatibility between url domain type and MX records
Fix indentation
cf #428
2023-09-28 09:15:52 +02:00
Kienan Stewart 20db4fceba Do not re-create sub_domaines unique key compte
New installations haven't had this unique key since 2014
(d9e24d9703) and only old
installations passing through 3.1.0~a would have had it
added.

Given that the unique key constraint was never dropped during
an AlternC upgrade, I think it should just be dropped here.

Re-creating is problematic when merged with other recent changes
because the length of both the key and column size are longer
than what MySQL/MariaDB support.
2023-09-28 09:04:31 +02:00
Kienan Stewart 8cabbc7e50 Fix SQL syntax error in 3.5.0.2.sql upgrade
Refs #435
2023-09-28 09:01:02 +02:00
Kienan Stewart 95efdafd3d Modify bind9 apparmor profile on installation
If the apparmor configuration file is there, an extra include will be added
and the install/app/usr.sbin.named-alternc file deployed to the apparmor local
configuration directory.

This allows bind to work with AlternC and apparmor enabled out of the box on
Debian Buster.
2023-09-27 18:10:09 +02:00
Guillaume Est Une Palourde fc8ce3d487 Made it possible to update a subdomain from vhost https to vhost http 2023-09-27 18:09:37 +02:00
Kienan Stewart 4e4a2bd5bc Disable vhost SSL overload types for use in the interface, and set has_https_option for vhost 2023-08-21 13:21:35 +02:00
Sébastien Grenier 5a555d238a creation of domaines_type to support ssl apache template 2023-08-21 13:15:44 +02:00
Camille Lafitte 9e2345bc2b Merge pull request #253 from Koumbit/247_escape-mysql-passwords-at-install
Fix #247: escape mysql passwords at install

Backport from merge set in stable-3.1
Merge remote-tracking branch 'remotes/koumbit/247_escape-mysql-passwords-at-install'
2023-08-15 10:23:13 +02:00
Kienan Stewart d78a5026ab use string templating instead of sed for creating/updating mysql configuration during install 2023-08-15 10:14:44 +02:00
Kienan Stewart 4c180272ed Escape mysql passwords in alternc install 2023-08-15 10:14:07 +02:00
Kienan Stewart 2e1fbd374d Fixes #441: Correct DMARC entry syntax 2021-06-16 17:08:54 +02:00
Gabriel Filion 6448440101
alternc.install: PHP version comparison is broken for buster (#461)
The current comparison can only work on debian stretch, that ships php
7.0, but debian buster has a more recent version and bullseye will have
an even more recent version.

This change was suggested by @ulvida (Daniel Viñar Ulriksen) on Github.
Thanks!

Closes: #459

Co-authored-by: Gabriel Filion <gabriel@koumbit.org>
2021-05-17 14:02:27 -04:00
Kienan Stewart 53570e236a
Enter default db_server information before templating
Refs #335
2019-05-15 17:46:15 -04:00
Kienan Stewart f3207ec2f1
Override owner and group for phpmyadmin lib files
Refs #335
2019-05-14 12:15:23 -04:00
Kienan Stewart 82c87c43e0
Increase blowfish secret length from 24 to 32
Refs #335
2019-05-14 12:15:00 -04:00
Benjamin Sonntag 654edab277 [fix]  simplify restart of services for apache2 2018-10-25 16:47:52 +02:00
Benjamin Sonntag f5d153c161 [fix] removing apache_logformat from tar 2018-10-25 16:14:45 +02:00
Benjamin Sonntag 15ec54d41c [fix] adding SYSTEMD detection in alternc.install to run opendkim properly 2018-10-25 15:50:26 +02:00
Benjamin Sonntag 7e8d5487e3 [fix] (for 3.5) adding has https option for autodiscover type 2018-10-25 15:38:06 +02:00
Kienan Stewart 4371bb59d5 Fix sed invocation to it runs in-place 2018-10-25 14:59:33 +02:00
Kienan Stewart 5a5fc801f8 Generate opendkim configuration in stretch when alternc.install is run
The default configuration in stretch doesn't work very well and
needs a couple of tweaks. This will generate the service files and
make sure opendkim is run as the opendkim user instead of root.

The alternc opendkim.conf template is updated so that the connection
can be made locally through a socket.
2018-10-25 14:59:33 +02:00
Benjamin Sonntag 8c6dcadca0 [fix] fixing default_spf_value and default_dmarc_value NOT being initialized at runtime. Do it at alternc.instal time. 2018-10-25 14:58:18 +02:00
Benjamin Sonntag 4770c268d8 [fix] (for 3.5) fixing mysql.sql not setting has_https_option to TRUE on vhost 2018-10-23 18:47:25 +02:00
Kienan Stewart 36fb528818 Deploy alternc.conf apache configuration 2018-10-23 17:19:44 +02:00
Kienan Stewart 9052e6ac31 Deploy dovecot configuration for SSL 2018-10-22 17:14:28 +02:00
Benjamin Sonntag e06e2b3abd dkim domaine type is taking TXT as paramter 2018-07-17 18:21:25 +02:00
Benjamin Sonntag 1e4f2783d8 [fix] bug that make it impossible to launch upgrades properly : alternc_status is overwriten at postinst :/ 2018-07-17 17:03:28 +02:00
Benjamin Sonntag 7445439654 [enh] proper name for autodiscover + fix global in m_dom 2018-07-17 15:50:29 +02:00
Benjamin Sonntag 5725cd89ce [fix] no need for www-data to be in ssl-cert group 2018-07-17 15:11:31 +02:00
Benjamin Sonntag f50f453707 [fix] missing global + proper shebang on upgrade script 2018-07-17 15:10:08 +02:00
Benjamin Sonntag 9b7332f354 [enh] adding DKIM and AUTODISCOVER management in SUB_DOMAINES, finishing BIND update_domains.php 2018-07-08 22:03:27 +02:00
Benjamin Sonntag 2ad744ecc7 [fix] replacing /var/run by /run everywhere we can (not everywhere: postfix chroot or old compatibility is maintained 2018-07-04 17:42:42 +02:00
Benjamin Sonntag a1ed5a4ad6 [fix] 3.4.10 and 3.4.11 where NOT executed during upgrades (sort -n :/ ) so we migrate those sql updates to 3.5.0.1.sql 2018-07-04 17:17:22 +02:00
Benjamin Sonntag 2695db49a2 [enh] preparing for the future : let's allow us to add \n into DNS entries, preparing for ... IPv6 \o/ 2018-06-25 16:48:12 +02:00
Benjamin Sonntag 144ff1e27a [enh] removing latest lintian exceptions, no Error, no Warnings ! 2018-06-24 19:40:22 +02:00
Benjamin Sonntag 7945034004 [fix] name of variable + fix of upgrade script 2018-06-24 19:05:59 +02:00
Benjamin Sonntag 5f27d551d8 [fix] enable ssl module for Apache 2018-06-24 18:17:10 +02:00
Benjamin Sonntag a4c488ae70 [enh] debian compliance work, almost no warning in lintian 2018-06-24 17:18:01 +02:00
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 178823a9f0 [merge] feature-ssl in master 2018-06-24 16:52:24 +02:00
Benjamin Sonntag 5f72126420 [fix] ftp human name error 2018-06-24 16:50:52 +02:00
Benjamin Sonntag e2237a2ed9 [fix] roundcube to core javascript disable conf apache2 2018-06-24 16:50:08 +02:00
Benjamin Sonntag e83a526c57 [fix] mysql.sql fix : do not create certificates table if already exists 2018-06-24 16:10:08 +02:00
Benjamin Sonntag 6fd89455fb [fix] alternc.install misc fixes: mysql_query heredoc + phpmyadmin test 2018-06-24 16:09:28 +02:00