Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
our_own_cloud_project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
die_coolen_jungs
our_own_cloud_project
Commits
9648be97
Commit
9648be97
authored
13 years ago
by
Jan-Christoph Borchardt
Browse files
Options
Downloads
Patches
Plain Diff
better error messages for installation, still need to be inline
parent
9be059ac
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/setup.php
+12
-12
12 additions, 12 deletions
lib/setup.php
with
12 additions
and
12 deletions
lib/setup.php
+
12
−
12
View file @
9648be97
...
...
@@ -37,13 +37,13 @@ class OC_Setup {
$dbtype
=
$options
[
'dbtype'
];
if
(
empty
(
$options
[
'adminlogin'
]))
{
$error
[]
=
'S
TEP 1 : admin login is not set
.'
;
$error
[]
=
'S
et an admin username
.'
;
}
if
(
empty
(
$options
[
'adminpass'
]))
{
$error
[]
=
'S
TEP 1 :
admin password
is not set
.'
;
$error
[]
=
'S
et an
admin password.'
;
}
if
(
empty
(
$options
[
'directory'
]))
{
$error
[]
=
'S
TEP 2 : data directory path is not set
.'
;
$error
[]
=
'S
pecify a data folder
.'
;
}
if
(
$dbtype
==
'mysql'
or
$dbtype
==
'pgsql'
)
{
//mysql and postgresql needs more config options
...
...
@@ -53,19 +53,19 @@ class OC_Setup {
$dbprettyname
=
'PostgreSQL'
;
if
(
empty
(
$options
[
'dbuser'
]))
{
$error
[]
=
"
STEP 3 :
$dbprettyname
database user
is not set
."
;
$error
[]
=
"
$dbprettyname
enter the
database user
name
."
;
}
if
(
empty
(
$options
[
'dbpass'
]))
{
$error
[]
=
"
STEP 3 :
$dbprettyname
database password
is not set
."
;
$error
[]
=
"
$dbprettyname
enter the
database password."
;
}
if
(
empty
(
$options
[
'dbname'
]))
{
$error
[]
=
"
STEP 3 :
$dbprettyname
database name
is not set
."
;
$error
[]
=
"
$dbprettyname
enter the
database name."
;
}
if
(
empty
(
$options
[
'dbhost'
]))
{
$error
[]
=
"
STEP 3 :
$dbprettyname
database host
is not set
."
;
$error
[]
=
"
$dbprettyname
set the
database host."
;
}
if
(
!
isset
(
$options
[
'dbtableprefix'
]))
{
$error
[]
=
"
STEP 3 :
$dbprettyname
database
table prefix
is not set
."
;
$error
[]
=
"
$dbprettyname
set a
table prefix."
;
}
}
...
...
@@ -97,8 +97,8 @@ class OC_Setup {
$connection
=
@
mysql_connect
(
$dbhost
,
$dbuser
,
$dbpass
);
if
(
!
$connection
)
{
$error
[]
=
array
(
'error'
=>
'
mysql
username and/or password not valid'
,
'hint'
=>
'
y
ou need to enter either an existing account
,
or the administrat
ive account if you wish to create a new user for ownCloud
'
'error'
=>
'
MySQL
username and/or password not valid'
,
'hint'
=>
'
Y
ou need to enter either an existing account or the administrat
or.
'
);
}
else
{
...
...
@@ -151,8 +151,8 @@ class OC_Setup {
$connection
=
@
pg_connect
(
$connection_string
);
if
(
!
$connection
)
{
$error
[]
=
array
(
'error'
=>
'
p
ostgre
sql
username and/or password not valid'
,
'hint'
=>
'
y
ou need to enter either an existing account
,
or the administrat
ive account if you wish to create a new user for ownCloud
'
'error'
=>
'
P
ostgre
SQL
username and/or password not valid'
,
'hint'
=>
'
Y
ou need to enter either an existing account or the administrat
or.
'
);
}
else
{
...
...
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