Skip to content

Commit 7d8d373

Browse files
author
Till Brehm
committed
Limit patch requieremnt to servers with amavisd-new
1 parent 5e43b35 commit 7d8d373

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

install/install.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@
9797
die('We will stop here. There is already a ISPConfig installation, use the update script to update this installation.');
9898
}*/
9999

100-
if(!is_installed('patch')) die('The patch command is missing. Install patch command and start installation again.');
100+
// Patch is required to reapir latest amavis versions
101+
if(is_installed('amavisd-new') && !is_installed('patch')) die('The patch command is missing. Install patch command and start installation again.');
101102

102103
//** Get distribution identifier
103104
$dist = get_distname();

install/update.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@
9898
die('This software cannot be installed on a server wich runs ISPConfig 2.x.');
9999
}
100100

101-
if(!is_installed('patch')) die('The patch command is missing. Install patch command and start installation again.');
101+
// Patch is required to reapir latest amavis versions
102+
if(is_installed('amavisd-new') && !is_installed('patch')) die('The patch command is missing. Install patch command and start update again.');
102103

103104
//** Get distribution identifier
104105
$dist = get_distname();

0 commit comments

Comments
 (0)