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
aab4e135
Commit
aab4e135
authored
9 years ago
by
sveseli
Browse files
Options
Downloads
Patches
Plain Diff
add postgres utilities into path; add support for DM_INSTALL_DIR
parent
63c84256
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
+22
-0
22 additions, 0 deletions
setup.sh
with
22 additions
and
0 deletions
setup.sh
+
22
−
0
View file @
aab4e135
...
...
@@ -11,6 +11,14 @@ fi
export
DM_ROOT_DIR
=
`
pwd
`
export
DM_HOST_ARCH
=
`
uname
|
tr
[
A-Z]
[
a-z]
`
-
`
uname
-m
`
if
[
-z
$DM_INSTALL_DIR
]
;
then
export
DM_INSTALL_DIR
=
$DM_ROOT_DIR
/..
if
[
-d
$DM_INSTALL_DIR
]
;
then
cd
$DM_INSTALL_DIR
export
DM_INSTALL_DIR
=
`
pwd
`
fi
fi
if
[
-z
$DM_DATA_DIR
]
;
then
export
DM_DATA_DIR
=
$DM_ROOT_DIR
/../data
if
[
-d
$DM_DATA_DIR
]
;
then
...
...
@@ -93,6 +101,20 @@ else
fi
export
PYTHONPATH
# Setup postgres.
if
[
-z
$DM_POSTGRESQL_DIR
]
;
then
postgresqlDir
=
$DM_SUPPORT_DIR
/postgresql/
$DM_HOST_ARCH
else
postgresqlDir
=
$DM_POSTGRESQL_DIR
fi
if
[
-d
$postgresqlDir
]
;
then
cd
$postgresqlDir
postgresqlDir
=
`
pwd
`
export
PATH
=
`
pwd
`
/bin:
$PATH
export
LD_LIBRARY_PATH
=
`
pwd
`
/lib:
$LD_LIBRARY_PATH
export
DM_POSTGRESQL_DIR
=
$postgresqlDir
fi
# Get back to where we were before invoking the setup script
cd
$currentDir
...
...
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