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
Package Registry
Model registry
Operate
Environments
Terraform modules
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
Manoa Ratefiarison
ISPConfig 3
Commits
cb1d8ba6
Commit
cb1d8ba6
authored
17 years ago
by
tbrehm
Browse files
Options
Downloads
Patches
Plain Diff
No commit message
No commit message
parent
fb7155ee
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
install/update.php
+11
-3
11 additions, 3 deletions
install/update.php
with
11 additions
and
3 deletions
install/update.php
+
11
−
3
View file @
cb1d8ba6
...
...
@@ -71,7 +71,12 @@ $inst->db = new db();
// Database update is a bit brute force and should be rebuild later ;)
// export the current database data
system
(
"mysqldump -h
$conf[mysql_server_host]
-u
$conf[mysql_server_ispconfig_user]
-p
$conf[mysql_server_ispconfig_password]
-c -t --add-drop-table --all --quick
$conf[mysql_server_database]
> existing_db.sql"
);
if
(
$conf
[
"mysql_server_admin_password"
]
!=
''
)
{
system
(
"mysqldump -h
$conf[mysql_server_host]
-u
$conf[mysql_server_admin_user]
-p
$conf[mysql_server_admin_password]
-c -t --add-drop-table --all --quick
$conf[mysql_server_database]
> existing_db.sql"
);
}
else
{
system
(
"mysqldump -h
$conf[mysql_server_host]
-u
$conf[mysql_server_admin_user]
-c -t --add-drop-table --all --quick
$conf[mysql_server_database]
> existing_db.sql"
);
}
// Delete the old database
exec
(
"/etc/init.d/mysql stop"
);
...
...
@@ -90,8 +95,11 @@ foreach($db_tables as $table) {
}
// load old data back into database
system
(
"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"
);
if
(
$conf
[
"mysql_server_admin_password"
]
!=
''
)
{
system
(
"mysql -h
$conf[mysql_server_host]
-u
$conf[mysql_server_admin_user]
-p
$conf[mysql_server_admin_password]
$conf[mysql_server_database]
< existing_db.sql"
);
}
else
{
system
(
"mysql -h
$conf[mysql_server_host]
-u
$conf[mysql_server_admin_user]
$conf[mysql_server_database]
< existing_db.sql"
);
}
// Configure postfix
$inst
->
configure_postfix
(
'dont-create-certs'
);
...
...
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