Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dm-docs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
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
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hammonds
dm-docs
Commits
72005c30
Commit
72005c30
authored
8 years ago
by
sveseli
Browse files
Options
Downloads
Patches
Plain Diff
updating setup script for new product paths
parent
bdfd0f57
No related branches found
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
setup.sh
+11
-10
11 additions, 10 deletions
setup.sh
with
11 additions
and
10 deletions
setup.sh
+
11
−
10
View file @
72005c30
...
@@ -35,13 +35,14 @@ if [ -z $DM_SUPPORT_DIR ]; then
...
@@ -35,13 +35,14 @@ if [ -z $DM_SUPPORT_DIR ]; then
export
DM_SUPPORT_DIR
=
`
pwd
`
export
DM_SUPPORT_DIR
=
`
pwd
`
fi
fi
fi
fi
if
[
!
-d
$DM_SUPPORT_DIR
]
;
then
if
[
!
-d
$DM_SUPPORT_DIR
]
;
then
echo
"ERROR:
$DM_SUPPORT_DIR
directory does not exist. Developers should point DM_SUPPORT_DIR to the desired area."
echo
"ERROR:
$DM_SUPPORT_DIR
directory does not exist. Developers should point DM_SUPPORT_DIR to the desired area."
unset
DM_SUPPORT_DIR
unset
DM_SUPPORT_DIR
return
1
return
1
else
export
DM_GLASSFISH_DIR
=
$DM_SUPPORT_DIR
/glassfish/
$DM_HOST_ARCH
fi
fi
export
DM_OPT_DIR
=
$DM_SUPPORT_DIR
/opt
export
DM_GLASSFISH_DIR
=
$DM_OPT_DIR
/glassfish
# Add to path only if directory exists.
# Add to path only if directory exists.
...
@@ -53,11 +54,11 @@ prependPathIfDirExists() {
...
@@ -53,11 +54,11 @@ prependPathIfDirExists() {
}
}
# Setup path and other variables
# Setup path and other variables
prependPathIfDirExists
$DM_
SUPPOR
T_DIR
/node/
$DM_HOST_ARCH
/bin
prependPathIfDirExists
$DM_
OP
T_DIR
/node/
$DM_HOST_ARCH
/bin
prependPathIfDirExists
$DM_
SUPPOR
T_DIR
/mongodb/
$DM_HOST_ARCH
/bin
prependPathIfDirExists
$DM_
OP
T_DIR
/mongodb/
$DM_HOST_ARCH
/bin
prependPathIfDirExists
$DM_
SUPPOR
T_DIR
/postgresql/
$DM_HOST_ARCH
/bin
prependPathIfDirExists
$DM_
OP
T_DIR
/postgresql/
$DM_HOST_ARCH
/bin
prependPathIfDirExists
$DM_
SUPPOR
T_DIR
/java/
$DM_HOST_ARCH
/bin
prependPathIfDirExists
$DM_
OP
T_DIR
/java/
$DM_HOST_ARCH
/bin
prependPathIfDirExists
$DM_
SUPPOR
T_DIR
/ant/bin
prependPathIfDirExists
$DM_
OP
T_DIR
/ant/bin
prependPathIfDirExists
$DM_ROOT_DIR
/bin
prependPathIfDirExists
$DM_ROOT_DIR
/bin
PATH
=
.:
$PATH
PATH
=
.:
$PATH
export
PATH
export
PATH
...
@@ -72,7 +73,7 @@ export LD_LIBRARY_PATH
...
@@ -72,7 +73,7 @@ export LD_LIBRARY_PATH
# Setup python path.
# Setup python path.
# Check if we have local python
# Check if we have local python
if
[
-z
$DM_PYTHON_DIR
]
;
then
if
[
-z
$DM_PYTHON_DIR
]
;
then
pythonDir
=
$DM_
SUPPOR
T_DIR
/python/
$DM_HOST_ARCH
pythonDir
=
$DM_
OP
T_DIR
/python/
$DM_HOST_ARCH
else
else
pythonDir
=
$DM_PYTHON_DIR
pythonDir
=
$DM_PYTHON_DIR
fi
fi
...
@@ -93,7 +94,7 @@ export PYTHONPATH
...
@@ -93,7 +94,7 @@ export PYTHONPATH
# Setup postgres.
# Setup postgres.
if
[
-z
$DM_POSTGRESQL_DIR
]
;
then
if
[
-z
$DM_POSTGRESQL_DIR
]
;
then
postgresqlDir
=
$DM_
SUPPOR
T_DIR
/postgresql/
$DM_HOST_ARCH
postgresqlDir
=
$DM_
OP
T_DIR
/postgresql/
$DM_HOST_ARCH
else
else
postgresqlDir
=
$DM_POSTGRESQL_DIR
postgresqlDir
=
$DM_POSTGRESQL_DIR
fi
fi
...
@@ -106,7 +107,7 @@ if [ -d $postgresqlDir ]; then
...
@@ -106,7 +107,7 @@ if [ -d $postgresqlDir ]; then
fi
fi
# Setup oracle libraries.
# Setup oracle libraries.
oracleDir
=
$DM_
SUPPOR
T_DIR
/
opt/
oracle-client/
$DM_HOST_ARCH
oracleDir
=
$DM_
OP
T_DIR
/oracle-client/
$DM_HOST_ARCH
if
[
-d
$oracleDir
]
;
then
if
[
-d
$oracleDir
]
;
then
LD_LIBRARY_PATH
=
$oracleDir
:
$LD_LIBRARY_PATH
LD_LIBRARY_PATH
=
$oracleDir
:
$LD_LIBRARY_PATH
PATH
=
$oracleDir
:
$PATH
PATH
=
$oracleDir
:
$PATH
...
...
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