Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
Open sidebar
ISPConfig
ISPConfig 3
Commits
cdb391d3
Commit
cdb391d3
authored
Mar 05, 2009
by
tbrehm
Browse files
updated opensuse installer.
parent
44dadea8
Changes
1
Hide whitespace changes
Inline
Side-by-side
install/dist/lib/opensuse.lib.php
View file @
cdb391d3
...
...
@@ -159,9 +159,15 @@ class installer_dist extends installer_base {
}
$configfile
=
$config_dir
.
'/master.cf'
;
$content
=
rf
(
$configfile
);
$content
=
str_replace
(
' flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}'
,
' flags=R user='
.
$cf
[
'vmail_username'
]
.
' argv=/usr/bin/maildrop -d ${recipient} ${extension} ${recipient} ${user} ${nexthop} ${sender}'
,
$content
);
$content
=
str_replace
(
' flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}'
,
' flags=R user='
.
$cf
[
'vmail_username'
]
.
' argv=/usr/bin/maildrop -d ${recipient} ${extension} ${recipient} ${user} ${nexthop} ${sender}'
,
$content
);
wf
(
$configfile
,
$content
);
//* Writing the Maildrop mailfilter file
...
...
@@ -189,7 +195,7 @@ class installer_dist extends installer_base {
public
function
configure_saslauthd
()
{
global
$conf
;
/*
$configfile
=
'sasl_smtpd.conf'
;
if
(
is_file
(
'/etc/sasl2/smtpd.conf'
))
copy
(
'/etc/sasl2/smtpd.conf'
,
'/etc/sasl2/smtpd.conf~'
);
if
(
is_file
(
'/etc/sasl2/smtpd.conf~'
))
exec
(
'chmod 400 '
.
'/etc/sasl2/smtpd.conf~'
);
...
...
@@ -199,7 +205,7 @@ class installer_dist extends installer_base {
$content
=
str_replace
(
'{mysql_server_database}'
,
$conf
[
'mysql'
][
'database'
],
$content
);
$content
=
str_replace
(
'{mysql_server_ip}'
,
$conf
[
'mysql'
][
'ip'
],
$content
);
wf
(
'/etc/sasl2/smtpd.conf'
,
$content
);
*/
// TODO: Chmod and chown on the config file
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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