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
Zvonimir
ISPConfig 3
Commits
99ca0f7a
Commit
99ca0f7a
authored
Feb 22, 2014
by
Till Brehm
Browse files
Fixed: FS#3261 - APS Deletes error folder
parent
5fbd5747
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/lib/classes/aps_installer.inc.php
View file @
99ca0f7a
...
...
@@ -373,14 +373,16 @@ class ApsInstaller extends ApsBase
/* Test if the new mysql connection is laready working to ensure that db servers in multiserver
setups get enough time to create the database */
for
(
$n
=
1
;
$n
<
15
;
$n
++
)
{
$mysqli
=
new
mysqli
(
$newdb_host
,
$newdb_login
,
$newdb_pw
,
$newdb_name
);
if
(
$mysqli
->
connect_error
)
{
unset
(
$mysqli
);
sleep
(
5
);
}
else
{
unset
(
$mysqli
);
break
;
if
(
$this
->
handle_type
==
'install'
)
{
for
(
$n
=
1
;
$n
<
15
;
$n
++
)
{
$link
=
mysql_connect
(
$newdb_host
,
$newdb_login
,
$newdb_pw
);
if
(
!
$link
)
{
unset
(
$link
);
sleep
(
5
);
}
else
{
unset
(
$link
);
break
;
}
}
}
...
...
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