Skip to content

Commit ccd5cc8

Browse files
author
Marius Burkard
committed
Merge branch '6198-clarify-ispconfig-v2-detected-message' into 'develop'
Resolve "clarify "ISPConfig v2 detected" message" Closes #6198 See merge request ispconfig/ispconfig3!1498
2 parents a8e9f5f + 4096880 commit ccd5cc8

File tree

3 files changed

+11
-40
lines changed

3 files changed

+11
-40
lines changed

install/install.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,13 @@
160160
die("ERROR: Cannot write to the ".dirname(ISPC_LOG_FILE)." directory. Are you root or sudo ?\n\n");
161161
}
162162

163+
//** Check for ISPConfig 2.x versions
163164
if(is_dir('/root/ispconfig') || is_dir('/home/admispconfig')) {
164-
die('This software cannot be installed on a server wich runs ISPConfig 2.x.');
165+
if(is_dir('/home/admispconfig')) {
166+
die('This software cannot be installed on a server which runs ISPConfig 2.x.');
167+
} else {
168+
die('This software cannot be installed on a server which runs ISPConfig 2.x; the presence of the /root/ispconfig/ directory may indicate an ISPConfig 2.x installation, otherwise you can remove or rename it to continue.');
169+
}
165170
}
166171

167172
if(is_dir('/usr/local/ispconfig')) {

install/update.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,11 @@
9696

9797
//** Check for ISPConfig 2.x versions
9898
if(is_dir('/root/ispconfig') || is_dir('/home/admispconfig')) {
99-
die('This software cannot be installed on a server wich runs ISPConfig 2.x.');
99+
if(is_dir('/home/admispconfig')) {
100+
die('This software cannot be installed on a server which runs ISPConfig 2.x.');
101+
} else {
102+
die('This software cannot be installed on a server which runs ISPConfig 2.x; the presence of the /root/ispconfig/ directory may indicate an ISPConfig 2.x installation, otherwise you can remove or rename it to continue.');
103+
}
100104
}
101105

102106
// Patch is required to reapir latest amavis versions

server/lib/classes/system.inc.php

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1591,44 +1591,6 @@ function quota_dirs(){
15911591

15921592

15931593

1594-
/**
1595-
* Scan the trash for virusses infection
1596-
*
1597-
*/
1598-
function make_trashscan(){
1599-
global $app;
1600-
//trashscan erstellen
1601-
// Template Öffnen
1602-
$app->tpl->clear_all();
1603-
$app->tpl->define( array(table => 'trashscan.master'));
1604-
1605-
if(!isset($this->server_conf['virusadmin']) || trim($this->server_conf['virusadmin']) == '') $this->server_conf['virusadmin'] = 'admispconfig@localhost';
1606-
if(substr($this->server_conf['virusadmin'], 0, 1) == '#'){
1607-
$notify = 'no';
1608-
} else {
1609-
$notify = 'yes';
1610-
}
1611-
1612-
// Variablen zuweisen
1613-
$app->tpl->assign( array(VIRUSADMIN => $this->server_conf['virusadmin'],
1614-
NOTIFICATION => $notify));
1615-
1616-
$app->tpl->parse(TABLE, table);
1617-
1618-
$trashscan_text = $app->tpl->fetch();
1619-
1620-
$datei = '/home/admispconfig/ispconfig/tools/clamav/bin/trashscan';
1621-
$app->file->wf($datei, $trashscan_text);
1622-
1623-
chmod($datei, 0755);
1624-
chown($datei, 'admispconfig');
1625-
chgrp($datei, 'admispconfig');
1626-
}
1627-
1628-
1629-
1630-
1631-
16321594
/**
16331595
* Get the current time
16341596
*

0 commit comments

Comments
 (0)