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
ISPConfig
ISPConfig 3
Commits
5f221a95
Commit
5f221a95
authored
13 years ago
by
tbrehm
Browse files
Options
Downloads
Patches
Plain Diff
Fixed bugs in updater.
parent
dba68fcd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!46
Master
,
!21
Master
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
install/autoupdate.php
+1
-0
1 addition, 0 deletions
install/autoupdate.php
install/lib/update.lib.php
+2
-1
2 additions, 1 deletion
install/lib/update.lib.php
install/update.php
+1
-0
1 addition, 0 deletions
install/update.php
with
4 additions
and
1 deletion
install/autoupdate.php
+
1
−
0
View file @
5f221a95
...
...
@@ -156,6 +156,7 @@ prepareDBDump();
//* initialize the database
$inst
->
db
=
new
db
();
$inst
->
db
->
dbName
=
$conf
[
"mysql"
][
"database"
];
/*
* The next line is a bit tricky!
...
...
This diff is collapsed.
Click to expand it.
install/lib/update.lib.php
+
2
−
1
View file @
5f221a95
...
...
@@ -286,7 +286,8 @@ function updateDbAndIni() {
}
$new_ini
=
array_to_ini
(
$tpl_ini_array
);
$inst
->
db
->
query
(
"UPDATE server SET config = '"
.
mysql_real_escape_string
(
$new_ini
)
.
"' WHERE server_id = "
.
$conf
[
'server_id'
]);
$sql
=
"UPDATE server SET config = '"
.
mysql_real_escape_string
(
$new_ini
)
.
"' WHERE server_id = "
.
$conf
[
'server_id'
];
$inst
->
db
->
query
(
$sql
);
unset
(
$old_ini_array
);
unset
(
$tpl_ini_array
);
unset
(
$new_ini
);
...
...
This diff is collapsed.
Click to expand it.
install/update.php
+
1
−
0
View file @
5f221a95
...
...
@@ -152,6 +152,7 @@ prepareDBDump();
//* initialize the database
$inst
->
db
=
new
db
();
$inst
->
db
->
dbName
=
$conf
[
"mysql"
][
"database"
];
//* initialize the master DB, if we have a multiserver setup
if
(
$conf
[
'mysql'
][
'master_slave_setup'
]
==
'y'
)
{
...
...
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