Skip to content

Commit 484e593

Browse files
committed
Merge branch 'vhostalias' of http://git.ispconfig.org/renky/ispconfig3 into vhostalias
2 parents ab75287 + 2d7d9ea commit 484e593

File tree

94 files changed

+1620
-295
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+1620
-295
lines changed

install/dist/lib/debian60.lib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function configure_dovecot()
5757
// Adding the amavisd commands to the postfix configuration
5858
$postconf_commands = array (
5959
'dovecot_destination_recipient_limit = 1',
60-
'virtual_transport = dovecot',
60+
'virtual_transport = lmtp:unix:private/dovecot-lmtp',
6161
'smtpd_sasl_type = dovecot',
6262
'smtpd_sasl_path = private/auth'
6363
);

install/dist/lib/fedora.lib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ public function configure_dovecot()
402402
// Adding the amavisd commands to the postfix configuration
403403
$postconf_commands = array (
404404
'dovecot_destination_recipient_limit = 1',
405-
'virtual_transport = dovecot',
405+
'virtual_transport = lmtp:unix:private/dovecot-lmtp',
406406
'smtpd_sasl_type = dovecot',
407407
'smtpd_sasl_path = private/auth',
408408
'receive_override_options = no_address_mappings'

install/dist/lib/gentoo.lib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ public function configure_dovecot()
245245
//* Reconfigure postfix to use dovecot authentication
246246
$postconf_commands = array (
247247
'dovecot_destination_recipient_limit = 1',
248-
'virtual_transport = dovecot',
248+
'virtual_transport = lmtp:unix:private/dovecot-lmtp',
249249
'smtpd_sasl_type = dovecot',
250250
'smtpd_sasl_path = private/auth'
251251
);

install/dist/lib/opensuse.lib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ public function configure_dovecot()
437437
// Adding the amavisd commands to the postfix configuration
438438
$postconf_commands = array (
439439
'dovecot_destination_recipient_limit = 1',
440-
'virtual_transport = dovecot',
440+
'virtual_transport = lmtp:unix:private/dovecot-lmtp',
441441
'smtpd_sasl_type = dovecot',
442442
'smtpd_sasl_path = private/auth',
443443
'receive_override_options = no_address_mappings'

install/lib/install.lib.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -666,6 +666,23 @@ function removeLine($filename, $search_pattern, $strict = 0) {
666666
}
667667
}
668668

669+
function hasLine($filename, $search_pattern, $strict = 0) {
670+
if($lines = @file($filename)) {
671+
foreach($lines as $line) {
672+
if($strict == 0) {
673+
if(stristr($line, $search_pattern)) {
674+
return true;
675+
}
676+
} else {
677+
if(trim($line) == $search_pattern) {
678+
return true;
679+
}
680+
}
681+
}
682+
}
683+
return false;
684+
}
685+
669686
function is_installed($appname) {
670687
exec('which '.escapeshellcmd($appname).' 2> /dev/null', $out, $returncode);
671688
if(isset($out[0]) && stristr($out[0], $appname) && $returncode == 0) {

install/lib/installer_base.lib.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1247,6 +1247,15 @@ public function configure_apache() {
12471247
replaceLine('/etc/apache2/ports.conf', 'Listen 443', 'Listen 443', 1);
12481248
}
12491249

1250+
if(is_file('/etc/apache2/apache.conf')) {
1251+
if(hasLine('/etc/apache2/apache.conf', 'Include sites-enabled/', 1) == false) {
1252+
if(hasLine('/etc/apache2/apache.conf', 'IncludeOptional sites-enabled/*.conf', 1) == false) {
1253+
replaceLine('/etc/apache2/apache.conf', 'Include sites-enabled/', 'Include sites-enabled/', 1, 1);
1254+
} elseif(hasLine('/etc/apache2/apache.conf', 'IncludeOptional sites-enabled/*.vhost', 1) == false) {
1255+
replaceLine('/etc/apache2/apache.conf', 'IncludeOptional sites-enabled/*.vhost', 'IncludeOptional sites-enabled/*.vhost', 1, 1);
1256+
}
1257+
}
1258+
}
12501259

12511260
//* Copy the ISPConfig configuration include
12521261
$vhost_conf_dir = $conf['apache']['vhost_conf_dir'];
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
ALTER TABLE `client_template` CHANGE `limit_aps` `limit_aps` INT( 11 ) NOT NULL DEFAULT '-1';
2-
ALTER TABLE `web_backup` ADD `filesize` VARCHAR(10) NOT NULL AFTER `filename`;
Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
ALTER TABLE `client_template` CHANGE `limit_aps` `limit_aps` INT( 11 ) NOT NULL DEFAULT '-1';
2-
ALTER TABLE `mail_domain` ADD `dkim_public` MEDIUMTEXT NOT NULL AFTER `domain`;
3-
ALTER TABLE `mail_domain` ADD `dkim_private` MEDIUMTEXT NOT NULL AFTER `domain`;
4-
ALTER TABLE `mail_domain` ADD `dkim` ENUM( 'n', 'y' ) NOT NULL AFTER `domain`;
51
ALTER TABLE `client` ADD `default_slave_dnsserver` INT( 11 ) UNSIGNED NOT NULL DEFAULT '1' AFTER `limit_dns_zone`;
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
ALTER TABLE `web_backup` CHANGE `backup_type` `backup_type` enum('web','mongodb','mysql') NOT NULL DEFAULT 'web';
2-
ALTER TABLE `web_database_user` ADD `database_password_mongo` varchar(32) DEFAULT NULL AFTER `database_password`;
31
ALTER TABLE `sys_datalog` ADD `error` MEDIUMTEXT NULL DEFAULT NULL;
Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,20 @@
1-
ALTER TABLE `mail_user` ADD `disablelmtp` ENUM( 'n', 'y' ) NOT NULL DEFAULT 'n' AFTER `disablelda` ;
1+
ALTER TABLE `client` ADD `limit_domainmodule` INT NOT NULL DEFAULT '0';
2+
ALTER TABLE `client_template` ADD `limit_domainmodule` INT NOT NULL DEFAULT '0';
3+
CREATE TABLE `client_message_template` (
4+
`client_message_template_id` bigint(20) NOT NULL AUTO_INCREMENT,
5+
`sys_userid` int(11) NOT NULL DEFAULT '0',
6+
`sys_groupid` int(11) NOT NULL DEFAULT '0',
7+
`sys_perm_user` varchar(5) DEFAULT NULL,
8+
`sys_perm_group` varchar(5) DEFAULT NULL,
9+
`sys_perm_other` varchar(5) DEFAULT NULL,
10+
`template_type` varchar(255) DEFAULT NULL,
11+
`template_name` varchar(255) DEFAULT NULL,
12+
`subject` varchar(255) DEFAULT NULL,
13+
`message` text,
14+
PRIMARY KEY (`client_message_template_id`)
15+
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
16+
ALTER TABLE `spamfilter_policy` ADD `policyd_quota_in` int(11) NOT NULL DEFAULT '-1',
17+
ADD `policyd_quota_in_period` int(11) NOT NULL DEFAULT '24',
18+
ADD `policyd_quota_out` int(11) NOT NULL DEFAULT '-1',
19+
ADD `policyd_quota_out_period` int(11) NOT NULL DEFAULT '24',
20+
ADD `policyd_greylist` ENUM( 'Y', 'N' ) NOT NULL DEFAULT 'N';

0 commit comments

Comments
 (0)