Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
ISPConfig
ISPConfig 3
Commits
33ec98b9
Commit
33ec98b9
authored
Jul 28, 2016
by
Till Brehm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed master.cf service detection for old postfix versions.
parent
0e11113b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
install/lib/installer_base.lib.php
install/lib/installer_base.lib.php
+2
-2
No files found.
install/lib/installer_base.lib.php
View file @
33ec98b9
...
@@ -823,8 +823,8 @@ class installer_base {
...
@@ -823,8 +823,8 @@ class installer_base {
$postfix_service
=
@
(
$out
[
0
]
==
''
)
?
false
:
true
;
$postfix_service
=
@
(
$out
[
0
]
==
''
)
?
false
:
true
;
}
else
{
//* fallback - Postfix < 2.9
}
else
{
//* fallback - Postfix < 2.9
$content
=
rf
(
$conf
[
'postfix'
][
'config_dir'
]
.
'/master.cf'
);
$content
=
rf
(
$conf
[
'postfix'
][
'config_dir'
]
.
'/master.cf'
);
$regex
=
'/[^#]'
.
$service
.
'
.*
.'
.
$type
.
'
.*
/'
;
$regex
=
"/^((?!#)"
.
$service
.
"
.*
"
.
$type
.
"
.*
)$/m"
;
$postfix_service
=
@
(
!
preg_match
(
$regex
,
$content
))
?
true
:
false
;
$postfix_service
=
@
(
preg_match
(
$regex
,
$content
))
?
true
:
false
;
}
}
return
$postfix_service
;
return
$postfix_service
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment