Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISPConfig
ISPConfig 3
Commits
a9a11217
Commit
a9a11217
authored
May 26, 2007
by
tbrehm
Browse files
activated the database creation in the installer.
parent
b565bf69
Changes
2
Hide whitespace changes
Inline
Side-by-side
install/install.php
View file @
a9a11217
...
...
@@ -60,7 +60,7 @@ include_once('lib/mysql.lib.php');
$inst
->
db
=
new
db
();
// Create the mysql database
//
$inst->configure_database();
$inst
->
configure_database
();
// Configure postfix
$inst
->
configure_postfix
();
...
...
install/lib/installer_base.lib.php
View file @
a9a11217
...
...
@@ -332,7 +332,7 @@ postfix check
$configfile
=
'sasl_smtpd.conf'
;
if
(
is_file
(
$conf
[
"dist_postfix_config_dir"
]
.
'/sasl/smtpd.conf'
))
copy
(
$conf
[
"dist_postfix_config_dir"
]
.
'/sasl/smtpd.conf'
,
$conf
[
"dist_postfix_config_dir"
]
.
'/sasl/smtpd.conf~'
);
exec
(
'chmod 400 '
.
$conf
[
"dist_postfix_config_dir"
]
.
'/sasl/smtpd.conf~'
);
if
(
is_file
(
$conf
[
"dist_postfix_config_dir"
]
.
'/sasl/smtpd.conf~'
))
exec
(
'chmod 400 '
.
$conf
[
"dist_postfix_config_dir"
]
.
'/sasl/smtpd.conf~'
);
$content
=
rf
(
"tpl/"
.
$configfile
.
".master"
);
$content
=
str_replace
(
'{mysql_server_ispconfig_user}'
,
$conf
[
"mysql_server_ispconfig_user"
],
$content
);
$content
=
str_replace
(
'{mysql_server_ispconfig_password}'
,
$conf
[
"mysql_server_ispconfig_password"
],
$content
);
...
...
@@ -351,7 +351,7 @@ postfix check
// configure pam for SMTP authentication agains the ispconfig database
$configfile
=
'pamd_smtp'
;
if
(
is_file
(
'/etc/pam.d/smtp'
))
copy
(
'/etc/pam.d/smtp'
,
'/etc/pam.d/smtp~'
);
exec
(
'chmod 400 /etc/pam.d/smtp~'
);
if
(
is_file
(
'/etc/pam.d/smtp~'
))
exec
(
'chmod 400 /etc/pam.d/smtp~'
);
$content
=
rf
(
"tpl/"
.
$configfile
.
".master"
);
$content
=
str_replace
(
'{mysql_server_ispconfig_user}'
,
$conf
[
"mysql_server_ispconfig_user"
],
$content
);
$content
=
str_replace
(
'{mysql_server_ispconfig_password}'
,
$conf
[
"mysql_server_ispconfig_password"
],
$content
);
...
...
@@ -387,7 +387,7 @@ postfix check
// amavisd user config file
$configfile
=
'amavisd_user_config'
;
if
(
is_file
(
$conf
[
"dist_amavis_config_dir"
]
.
'/50-user'
))
copy
(
$conf
[
"dist_amavis_config_dir"
]
.
'/50-user'
,
$conf
[
"dist_courier_config_dir"
]
.
'/50-user~'
);
exec
(
'chmod 400 '
.
$conf
[
"dist_
courier
_config_dir"
]
.
'/50-user~'
);
if
(
is_file
(
$conf
[
"dist_amavis_config_dir"
]
.
'/50-user~'
))
exec
(
'chmod 400 '
.
$conf
[
"dist_
amavis
_config_dir"
]
.
'/50-user~'
);
$content
=
rf
(
"tpl/"
.
$configfile
.
".master"
);
$content
=
str_replace
(
'{mysql_server_ispconfig_user}'
,
$conf
[
"mysql_server_ispconfig_user"
],
$content
);
$content
=
str_replace
(
'{mysql_server_ispconfig_password}'
,
$conf
[
"mysql_server_ispconfig_password"
],
$content
);
...
...
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