Skip to content

Commit 86d9389

Browse files
author
Till Brehm
committed
Merge branch 'develop' into 'develop'
# Conflicts: # interface/web/login/index.php
2 parents c1250ee + 27db86c commit 86d9389

File tree

16 files changed

+97
-169
lines changed

16 files changed

+97
-169
lines changed

.gitlab-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ build:package:
9090
- if [[ "$VER" == "" ]] ; then VER="3.2dev"$(date +%s) ; fi
9191
- if [[ "$VER" != "" ]] ; then echo "Replacing 3.2dev by $VER" ; sed -i -r 's/3\.2dev/'${VER}'/g' install/tpl/config.inc.php.master install/sql/ispconfig3.sql ; fi
9292
- RET=0
93-
- tar -cpzf ISPConfig-${VER}.tar.gz --exclude "ISPConfig-${VER}.tar.gz" --exclude ".git*" --exclude ".phplint.yml" --transform 's,^\./,ispconfig3_install/,' . || RET=$?
93+
- tar -cpzf ISPConfig-${VER}.tar.gz --exclude "ISPConfig-${VER}.tar.gz" --exclude ".git*" --exclude ".phplint.yml" --transform 's,^\./,ispconfig3_install/,' --mode='0775' ./* || RET=$?
9494
- if [[ $RET > 1 ]] ; then exit $RET ; fi
9595
- echo "Listing tar contents for verification"
9696
- tar -tvf ISPConfig-${VER}.tar.gz
@@ -101,4 +101,4 @@ build:package:
101101
- echo "Download url is https://download.ispconfig.org/ISPConfig-${VER}.tar.gz"
102102

103103
needs: ["syntax:lint"]
104-
allow_failure: false
104+
allow_failure: false

install/dist/tpl/gentoo/apache_ispconfig.vhost.master

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
{vhost_port_listen} Listen {vhost_port}
88
<tmpl_if name='apache_version' op='<' value='2.4' format='version'>
9-
NameVirtualHost *:{vhost_port}
9+
# NameVirtualHost *:{vhost_port}
1010
</tmpl_if>
1111

1212
<VirtualHost _default_:{vhost_port}>

install/lib/installer_base.lib.php

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ private function install_acme() {
5252
}
5353

5454
public function update_acme() {
55-
$acme = explode("\n", shell_exec('which acme.sh /usr/local/ispconfig/server/scripts/acme.sh /root/.acme.sh/acme.sh'));
55+
$acme = explode("\n", shell_exec('which acme.sh /usr/local/ispconfig/server/scripts/acme.sh /root/.acme.sh/acme.sh 2> /dev/null'));
5656
$acme = reset($acme);
5757
$val = 0;
5858

@@ -892,6 +892,20 @@ public function configure_jailkit() {
892892
public function configure_mailman($status = 'insert') {
893893
global $conf;
894894

895+
// Fix for #6314: bug on Debian 11 systems where Mailman3 is not available and broken routes exist in the Mailman config
896+
$data_dir = '/var/lib/mailman';
897+
if (($conf['mailman']['installed'] != true) && is_dir($data_dir)) {
898+
rename($data_dir, $data_dir . '-bk');
899+
//* Create the mailman files
900+
if(!is_dir('/var/lib/mailman/data')) exec('mkdir -p /var/lib/mailman/data');
901+
if(!is_file('/var/lib/mailman/data/aliases')) touch('/var/lib/mailman/data/aliases');
902+
exec('postmap /var/lib/mailman/data/aliases');
903+
if(!is_file('/var/lib/mailman/data/virtual-mailman')) touch('/var/lib/mailman/data/virtual-mailman');
904+
exec('postmap /var/lib/mailman/data/virtual-mailman');
905+
if(!is_file('/var/lib/mailman/data/transport-mailman')) touch('/var/lib/mailman/data/transport-mailman');
906+
exec('postmap /var/lib/mailman/data/transport-mailman');
907+
}
908+
895909
$config_dir = $conf['mailman']['config_dir'].'/';
896910
$full_file_name = $config_dir.'mm_cfg.py';
897911
//* Backup exiting file
@@ -1653,7 +1667,7 @@ public function configure_amavis() {
16531667
//* These postconf commands will be executed on installation and update
16541668
$server_ini_rec = $this->db->queryOneRecord("SELECT mail_server, config FROM ?? WHERE server_id = ?", $conf["mysql"]["database"] . '.server', $conf['server_id']);
16551669
$server_ini_array = ini_to_array(stripslashes($server_ini_rec['config']));
1656-
$mail_server = ($server_ini_rec['mail_server']) ? true : false;
1670+
$mail_server = $conf['services']['mail'];
16571671
unset($server_ini_rec);
16581672

16591673
// amavisd user config file
@@ -1777,7 +1791,7 @@ public function configure_rspamd() {
17771791
//* These postconf commands will be executed on installation and update
17781792
$server_ini_rec = $this->db->queryOneRecord("SELECT mail_server, config FROM ?? WHERE server_id = ?", $conf["mysql"]["database"] . '.server', $conf['server_id']);
17791793
$server_ini_array = ini_to_array(stripslashes($server_ini_rec['config']));
1780-
$mail_server = ($server_ini_rec['mail_server']) ? true : false;
1794+
$mail_server = $conf['services']['mail'];
17811795
unset($server_ini_rec);
17821796

17831797
$config_dir = $conf['postfix']['config_dir'];
@@ -1981,8 +1995,13 @@ public function configure_rspamd() {
19811995

19821996
exec('chmod a+r /etc/rspamd/local.d/* /etc/rspamd/local.d/maps.d/* /etc/rspamd/override.d/*');
19831997
# protect passwords in these files
1984-
exec('chgrp _rspamd /etc/rspamd/local.d/redis.conf /etc/rspamd/local.d/classifier-bayes.conf /etc/rspamd/local.d/worker-controller.inc');
1985-
exec('chmod 640 /etc/rspamd/local.d/redis.conf /etc/rspamd/local.d/classifier-bayes.conf /etc/rspamd/local.d/worker-controller.inc');
1998+
exec('chgrp _rspamd /etc/rspamd/local.d/redis.conf /etc/rspamd/local.d/classifier-bayes.conf');
1999+
exec('chmod 640 /etc/rspamd/local.d/redis.conf /etc/rspamd/local.d/classifier-bayes.conf');
2000+
2001+
if(file_exists('/etc/rspamd/local.d/worker-controller.inc')) {
2002+
exec('chgrp _rspamd /etc/rspamd/local.d/worker-controller.inc');
2003+
exec('chmod 640 /etc/rspamd/local.d/worker-controller.inc');
2004+
}
19862005

19872006
# unneccesary, since this was done above?
19882007
$command = 'usermod -a -G amavis _rspamd';

install/tpl/apache_apps.vhost.master

Lines changed: 0 additions & 134 deletions
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
server/conf/apache_apps.vhost.master

install/tpl/server.ini.master

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ php_fpm_default_chroot=n
140140
bind_user=root
141141
bind_group=bind
142142
bind_zonefiles_dir=/etc/bind
143+
bind_keyfiles_dir=/etc/bind
143144
named_conf_path=/etc/bind/named.conf
144145
named_conf_local_path=/etc/bind/named.conf.local
145146
disable_bind_log=n

interface/web/admin/form/server_config.tform.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1652,6 +1652,20 @@
16521652
'width' => '40',
16531653
'maxlength' => '255'
16541654
),
1655+
'bind_keyfiles_dir' => array(
1656+
'datatype' => 'VARCHAR',
1657+
'formtype' => 'TEXT',
1658+
'default' => '',
1659+
'validators' => array( 0 => array('type' => 'NOTEMPTY',
1660+
'errmsg' => 'bind_keyfiles_dir_error_empty'),
1661+
1 => array ( 'type' => 'REGEX',
1662+
'regex' => '/^\/[a-zA-Z0-9\.\-\_\/]{1,128}$/',
1663+
'errmsg'=> 'bind_keyfiles_dir_error_regex'),
1664+
),
1665+
'value' => '',
1666+
'width' => '40',
1667+
'maxlength' => '255'
1668+
),
16551669
'named_conf_path' => array(
16561670
'datatype' => 'VARCHAR',
16571671
'formtype' => 'TEXT',

interface/web/admin/form/users.tform.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@
251251
'formtype' => 'CHECKBOX',
252252
'regex' => '',
253253
'errmsg' => '',
254-
'default' => '',
254+
'default' => '1',
255255
'value' => array(0 => 0, 1 => 1),
256256
'separator' => '',
257257
'width' => '30',

interface/web/admin/lib/lang/en_server_config.lng

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,12 @@ $wb['apps_vhost_servername_txt'] = 'Apps-vhost Domain';
9191
$wb['bind_user_txt'] = 'BIND User';
9292
$wb['bind_group_txt'] = 'BIND Group';
9393
$wb['bind_zonefiles_dir_txt'] = 'BIND zonefiles directory';
94+
$wb['bind_keyfiles_dir_txt'] = 'BIND keyfiles directory';
9495
$wb['named_conf_path_txt'] = 'BIND named.conf path';
9596
$wb['bind_user_error_empty'] = 'BIND user is empty.';
9697
$wb['bind_group_error_empty'] = 'BIND group is empty.';
9798
$wb['bind_zonefiles_dir_error_empty'] = 'BIND zonefiles directory is empty.';
99+
$wb['bind_keyfiles_dir_error_empty'] = 'BIND keyfiles directory is empty.';
98100
$wb['named_conf_path_error_empty'] = 'BIND named.conf path is empty.';
99101
$wb['named_conf_local_path_error_empty'] = 'BIND named.conf.local path is empty.';
100102
$wb['mail_filter_syntax_txt'] = 'Mailfilter Syntax';
@@ -281,6 +283,7 @@ $wb['awstats_buildstaticpages_pl_error_regex'] = 'Invalid awstats_buildstaticpag
281283
$wb['invalid_bind_user_txt'] = 'Invalid BIND user.';
282284
$wb['invalid_bind_group_txt'] = 'Invalid BIND group.';
283285
$wb['bind_zonefiles_dir_error_regex'] = 'Invalid BIND zonefiles directory.';
286+
$wb['bind_keyfiles_dir_error_regex'] = 'Invalid BIND keyfiles directory.';
284287
$wb['named_conf_path_error_regex'] = 'Invalid named.conf path.';
285288
$wb['named_conf_local_path_error_regex'] = 'Invalid named.conf.local path.';
286289
$wb['fastcgi_starter_path_error_regex'] = 'Invalid fastcgi starter path.';

interface/web/admin/templates/server_config_dns_edit.htm

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
<div class="form-group">
1212
<label for="bind_zonefiles_dir" class="col-sm-3 control-label">{tmpl_var name='bind_zonefiles_dir_txt'}</label>
1313
<div class="col-sm-9"><input type="text" name="bind_zonefiles_dir" id="bind_zonefiles_dir" value="{tmpl_var name='bind_zonefiles_dir'}" class="form-control" /></div></div>
14+
<div class="form-group">
15+
<label for="bind_keyfiles_dir" class="col-sm-3 control-label">{tmpl_var name='bind_keyfiles_dir_txt'}</label>
16+
<div class="col-sm-9"><input type="text" name="bind_keyfiles_dir" id="bind_keyfiles_dir" value="{tmpl_var name='bind_keyfiles_dir'}" class="form-control" /></div></div>
1417
<div class="form-group">
1518
<label for="named_conf_path" class="col-sm-3 control-label">{tmpl_var name='named_conf_path_txt'}</label>
1619
<div class="col-sm-9"><input type="text" name="named_conf_path" id="named_conf_path" value="{tmpl_var name='named_conf_path'}" class="form-control" /></div></div>

0 commit comments

Comments
 (0)