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
ISPConfig
ISPConfig 3
Commits
88d899db
Commit
88d899db
authored
Jul 09, 2008
by
tbrehm
Browse files
Better debugging and exit conditions in mysql databse plugin.
parent
a57e0682
Changes
2
Hide whitespace changes
Inline
Side-by-side
install/lib/installer_base.lib.php
View file @
88d899db
...
...
@@ -657,8 +657,10 @@ class installer_base {
$install_dir
=
$this
->
conf
[
'ispconfig_install_dir'
];
//* Create the ISPConfig installation directory
$command
=
"mkdir
$install_dir
"
;
caselog
(
$command
.
' &> /dev/null'
,
__FILE__
,
__LINE__
,
"EXECUTED:
$command
"
,
"Failed to execute the command
$command
"
);
if
(
!@
is_dir
(
$install_dir
))
{
$command
=
"mkdir
$install_dir
"
;
caselog
(
$command
.
' &> /dev/null'
,
__FILE__
,
__LINE__
,
"EXECUTED:
$command
"
,
"Failed to execute the command
$command
"
);
}
//* Create a ISPConfig user and group
$command
=
'groupadd ispconfig'
;
...
...
@@ -795,7 +797,7 @@ class installer_base {
//copy('tpl/apache_ispconfig.vhost.master', "$vhost_conf_dir/ispconfig.vhost");
//* and create the symlink
if
(
$this
->
install_ispconfig_interface
==
true
)
{
if
(
!
is_link
(
"
$vhost_conf_enabled_dir
/ispconfig.vhost"
))
{
if
(
!
@
is_link
(
"
$vhost_conf_enabled_dir
/ispconfig.vhost"
))
{
exec
(
"ln -s
$vhost_conf_dir
/ispconfig.vhost
$vhost_conf_enabled_dir
/ispconfig.vhost"
);
}
}
...
...
server/plugins-available/mysql_clientdb_plugin.inc.php
View file @
88d899db
...
...
@@ -105,6 +105,7 @@ class mysql_clientdb_plugin {
$link
=
mysql_connect
(
$clientdb_host
,
$clientdb_user
,
$clientdb_password
);
if
(
!
$link
)
{
$app
->
log
(
'Unable to connect to the database'
.
mysql_error
(
$link
),
LOGLEVEL_ERROR
);
return
;
}
//* Rename User
...
...
@@ -164,6 +165,7 @@ class mysql_clientdb_plugin {
$link
=
mysql_connect
(
$clientdb_host
,
$clientdb_user
,
$clientdb_password
);
if
(
!
$link
)
{
$app
->
log
(
'Unable to connect to the database'
.
mysql_error
(
$link
),
LOGLEVEL_ERROR
);
return
;
}
//* Get the db host setting for the access priveliges
...
...
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