Skip to content

Commit 9f56bd9

Browse files
committed
Merged revisions 2095-2129 which contain bugfixes from stable branch.
1 parent 627fba4 commit 9f56bd9

File tree

316 files changed

+2869
-86
lines changed

Some content is hidden

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

316 files changed

+2869
-86
lines changed

docs/INSTALL_CENTOS_5.2.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,18 @@ tar xvfz vlogger-1.3.tar.gz
162162
mv vlogger-1.3/vlogger /usr/sbin/
163163
rm -rf vlogger*
164164

165+
Edit the file /etc/sudoers
166+
167+
vi /etc/sudoers
168+
169+
and change the line:
170+
171+
Defaults requiretty
172+
173+
to:
174+
175+
# Defaults requiretty
176+
165177
7) Install ISPConfig 3
166178

167179
Disable the firewall:

docs/INSTALL_CENTOS_5.4_dovecot_bind.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,18 @@ make
191191
make install
192192
rm -rf jailkit-2.11*
193193

194+
Edit the file /etc/sudoers
195+
196+
vi /etc/sudoers
197+
198+
and change the line:
199+
200+
Defaults requiretty
201+
202+
to:
203+
204+
# Defaults requiretty
205+
194206

195207
7) Install ISPConfig 3
196208

install/dist/lib/centos53.lib.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ public function configure_amavis() {
3737
$configfile = 'fedora_amavisd_conf';
3838
if(is_file($conf["amavis"]["config_dir"].'/amavisd.conf')) copy($conf["amavis"]["config_dir"].'/amavisd.conf',$conf["amavis"]["config_dir"].'/amavisd.conf~');
3939
if(is_file($conf["amavis"]["config_dir"].'/amavisd.conf~')) exec('chmod 400 '.$conf["amavis"]["config_dir"].'/amavisd.conf~');
40+
if(!is_dir($conf["amavis"]["config_dir"])) mkdir($conf["amavis"]["config_dir"]);
4041
$content = rf("tpl/".$configfile.".master");
4142
$content = str_replace('{mysql_server_ispconfig_user}',$conf['mysql']['ispconfig_user'],$content);
4243
$content = str_replace('{mysql_server_ispconfig_password}',$conf['mysql']['ispconfig_password'], $content);

install/dist/lib/fedora.lib.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -903,6 +903,9 @@ public function install_ispconfig()
903903
exec('chown getmail /usr/local/bin/run-getmail.sh');
904904
exec('chmod 744 /usr/local/bin/run-getmail.sh');
905905

906+
// Edit the file Edit the file /etc/sudoers and comment out the requiregetty line, otherwise the backup function will fail
907+
replaceLine('/etc/sudoers','Defaults requiretty','#Defaults requiretty',0,0);
908+
906909

907910
}
908911

install/lib/installer_base.lib.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1010,7 +1010,7 @@ public function configure_apache() {
10101010
// copy('tpl/apache_ispconfig.conf.master',$vhost_conf_dir.'/ispconfig.conf');
10111011

10121012
$content = rf('tpl/apache_ispconfig.conf.master');
1013-
$records = $this->db->queryAllRecords("SELECT * FROM server_ip WHERE server_id = ".$conf["server_id"]." AND virtualhost = 'y'");
1013+
$records = $this->db->queryAllRecords('SELECT * FROM '.$conf['mysql']['master_database'].'.server_ip WHERE server_id = '.$conf['server_id']." AND virtualhost = 'y'");
10141014
if(is_array($records) && count($records) > 0) {
10151015
foreach($records as $rec) {
10161016
$content .= 'NameVirtualHost '.$rec['ip_address'].":80\n";
@@ -1036,6 +1036,10 @@ public function configure_apache() {
10361036
replaceLine('/etc/webalizer/webalizer.conf','#Incremental','Incremental yes',0,0);
10371037
replaceLine('/etc/webalizer/webalizer.conf','#HistoryName','HistoryName webalizer.hist',0,0);
10381038
}
1039+
1040+
// Check the awsatst script
1041+
if(!is_dir('/usr/share/awstats/tools')) exec('mkdir -p /usr/share/awstats/tools');
1042+
if(!file_exists('/usr/share/awstats/tools/awstats_buildstaticpages.pl') && file_exists('/usr/share/doc/awstats/examples/awstats_buildstaticpages.pl')) symlink('/usr/share/doc/awstats/examples/awstats_buildstaticpages.pl','/usr/share/awstats/tools/awstats_buildstaticpages.pl');
10391043

10401044
//* add a sshusers group
10411045
$command = 'groupadd sshusers';

install/sql/ispconfig3.sql

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1102,7 +1102,6 @@ CREATE TABLE `web_domain` (
11021102
`parent_domain_id` int(11) unsigned NOT NULL default '0',
11031103
`vhost_type` varchar(32) default NULL,
11041104
`document_root` varchar(255) default NULL,
1105-
`document_root_www` varchar(255) default NULL,
11061105
`system_user` varchar(255) default NULL,
11071106
`system_group` varchar(255) default NULL,
11081107
`hd_quota` bigint(20) NOT NULL default '0',
@@ -1131,9 +1130,9 @@ CREATE TABLE `web_domain` (
11311130
`stats_password` varchar(255) default NULL,
11321131
`stats_type` varchar(255) default 'webalizer',
11331132
`allow_override` varchar(255) NOT NULL default 'All',
1134-
`apache_directives` text,
1135-
`php_open_basedir` text,
1136-
`custom_php_ini` text,
1133+
`apache_directives` mediumtext,
1134+
`php_open_basedir` mediumtext,
1135+
`custom_php_ini` mediumtext,
11371136
`backup_interval` VARCHAR( 255 ) NOT NULL DEFAULT 'none',
11381137
`backup_copies` INT NOT NULL DEFAULT '1',
11391138
`active` enum('n','y') NOT NULL default 'y',
@@ -1354,7 +1353,7 @@ INSERT INTO `sys_user` (`userid`, `sys_userid`, `sys_groupid`, `sys_perm_user`,
13541353
-- Dumping data for table `sys_config`
13551354
--
13561355

1357-
INSERT INTO sys_config VALUES ('1','db','db_version','3.0.3');
1356+
INSERT INTO sys_config VALUES ('1','db','db_version','3.0.3.1');
13581357

13591358
-- --------------------------------------------------------
13601359

install/tpl/apache_ispconfig.conf.master

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,6 @@ CustomLog "| /usr/local/ispconfig/server/scripts/vlogger -s access.log -t \"%Y%m
4141
Order allow,deny
4242
Allow from all
4343
</Directory>
44-
Alias /awstats-icon "/usr/share/awstats/icon"
4544

45+
Alias /awstats-icon "/usr/share/awstats/icon"
4646

install/tpl/config.inc.php.master

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ $revision = str_replace(array('Revision:','$',' '), '', $svn_revision);
5656

5757
//** Application
5858
define('ISPC_APP_TITLE', 'ISPConfig');
59-
define('ISPC_APP_VERSION', '3.0.3');
59+
define('ISPC_APP_VERSION', '3.0.3.1');
6060

6161

6262
//** Database

install/update.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@
308308
$conf['apache']['vhost_port'] = $inst->free_query('ISPConfig Port', $ispconfig_port_number);
309309

310310
// $ispconfig_ssl_default = (is_ispconfig_ssl_enabled() == true)?'y':'n';
311-
if(strtolower($inst->simple_query('Create new ISPConfig SSL certificate',array('y','n'),'n')) == 'y') {
311+
if(strtolower($inst->simple_query('Create new ISPConfig SSL certificate',array('yes','no'),'no')) == 'yes') {
312312
$inst->make_ispconfig_ssl_cert();
313313
}
314314

interface/lib/classes/tform.inc.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,8 @@ function getHTML($record, $tab, $action = 'NEW') {
362362
// If Datasource is set, get the data from there
363363
if(isset($field['datasource']) && is_array($field['datasource'])) {
364364
if(is_array($field["value"])) {
365-
$field["value"] = array_merge($field["value"],$this->getDatasourceData($field, $record));
365+
//$field["value"] = array_merge($field["value"],$this->getDatasourceData($field, $record));
366+
$field["value"] = $field["value"]+$this->getDatasourceData($field, $record);
366367
} else {
367368
$field["value"] = $this->getDatasourceData($field, $record);
368369
}

0 commit comments

Comments
 (0)