Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
goatherd
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository 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
CIP-Admins
goatherd
Commits
bd8345cc
Commit
bd8345cc
authored
8 years ago
by
Lukas Braun
Browse files
Options
Downloads
Patches
Plain Diff
test_pg.sh: search for pg_ctl in debian's paths
parent
78c5be83
Branches
Branches containing commit
Tags
Tags containing commit
Loading
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test_pg.sh
+12
-0
12 additions, 0 deletions
test_pg.sh
with
12 additions
and
0 deletions
test_pg.sh
+
12
−
0
View file @
bd8345cc
...
...
@@ -2,6 +2,18 @@
set
-eu
# Try to find a Postgres installation (Debian installs PG commands to their own dir)
if
!
which pg_ctl
>
/dev/null 2>/dev/null
;
then
pg_path
=
$(
echo
/usr/lib/postgresql/
*
/bin |
grep
-vF
'*'
|
head
-1
)
if
[
-n
"
$pg_path
"
]
;
then
echo
"Using PostgreSQL from
$pg_path
"
export
PATH
=
"
$pg_path
:
$PATH
"
else
echo
"WARNING: Unable to find pg_ctl, skipping PostgreSQL tests"
exit
0
fi
fi
export
PGHOST
=
"
$PWD
/postgres_test"
if
[
$#
-ge
1
]
;
then
PGHOST
=
"
$(
realpath
--
"
$1
"
)
"
...
...
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