Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
I
ISPConfig 3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Drew Clardy
ISPConfig 3
Commits
c58e3f77
Commit
c58e3f77
authored
17 years ago
by
tbrehm
Browse files
Options
Downloads
Patches
Plain Diff
updated installer and sql dump
parent
e2d6ed95
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
install/lib/installer_base.lib.php
+8
-7
8 additions, 7 deletions
install/lib/installer_base.lib.php
install/sql/ispconfig3.sql
+81
-79
81 additions, 79 deletions
install/sql/ispconfig3.sql
install/update.php
+1
-1
1 addition, 1 deletion
install/update.php
with
90 additions
and
87 deletions
install/lib/installer_base.lib.php
+
8
−
7
View file @
c58e3f77
...
...
@@ -104,7 +104,7 @@ class installer_base {
Create postfix configuration files
*/
function
configure_postfix
()
{
function
configure_postfix
(
$options
=
''
;
)
{
global
$conf
;
if
(
!
is_dir
(
$conf
[
"dist_postfix_config_dir"
]))
$this
->
error
(
"The postfix configuration directory "
.
$conf
[
"dist_postfix_config_dir"
]
.
" does not exist."
);
...
...
@@ -248,13 +248,14 @@ maildrop unix - n n - - pipe
flags=R user=vmail argv=/usr/bin/maildrop -d ${recipient} ${extension} ${recipient} ${user} ${nexthop} ${sender}
*/
if
(
stristr
(
$options
,
'dont-create-certs'
)
{
// Create the SSL certificate
$command
=
"cd "
.
$conf
[
"dist_postfix_config_dir"
]
.
"; openssl req -new -outform PEM -out smtpd.cert -newkey rsa:2048 -nodes -keyout smtpd.key -keyform PEM -days 365 -x509"
;
exec
(
$command
);
// Create the SSL certificate
$command
=
"cd "
.
$conf
[
"dist_postfix_config_dir"
]
.
"; openssl req -new -outform PEM -out smtpd.cert -newkey rsa:2048 -nodes -keyout smtpd.key -keyform PEM -days 365 -x509"
;
exec
(
$command
);
$command
=
"chmod o= "
.
$conf
[
"dist_postfix_config_dir"
]
.
"/smtpd.key"
;
caselog
(
$command
.
" &> /dev/null"
,
__FILE__
,
__LINE__
,
"EXECUTED: "
.
$command
,
"Failed to execute the command "
.
$command
);
$command
=
"chmod o= "
.
$conf
[
"dist_postfix_config_dir"
]
.
"/smtpd.key"
;
caselog
(
$command
.
" &> /dev/null"
,
__FILE__
,
__LINE__
,
"EXECUTED: "
.
$command
,
"Failed to execute the command "
.
$command
);
}
/*
We have to change the permissions of the courier authdaemon directory
...
...
This diff is collapsed.
Click to expand it.
install/sql/ispconfig3.sql
+
81
−
79
View file @
c58e3f77
This diff is collapsed.
Click to expand it.
install/update.php
+
1
−
1
View file @
c58e3f77
...
...
@@ -91,7 +91,7 @@ foreach($db_tables as $table) {
exec
(
"mysql -h
$conf[mysql_server_host]
-u
$conf[mysql_server_ispconfig_user]
-p
$conf[mysql_server_ispconfig_password]
$conf[mysql_server_database]
< existing_db.sql &> /dev/null"
);
// Configure postfix
$inst
->
configure_postfix
();
$inst
->
configure_postfix
(
'dont-create-certs'
);
// Configure saslauthd
swriteln
(
'Configuring SASL'
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment