Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
postgres
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
docker-library
postgres
Commits
d158e210
Commit
d158e210
authored
7 years ago
by
Tianon Gravi
Browse files
Options
Downloads
Patches
Plain Diff
Adjust "update.sh" output to be more concise
parent
639f83fb
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
update.sh
+61
-63
61 additions, 63 deletions
update.sh
with
61 additions
and
63 deletions
update.sh
+
61
−
63
View file @
d158e210
...
...
@@ -40,8 +40,8 @@ for version in "${versions[@]}"; do
fullVersion
=
"
$(
echo
"
$versionList
"
|
awk
-F
': '
'$1 == "Package" { pkg = $2 } $1 == "Version" && pkg == "postgresql-'
"
$version
"
'" { print $2; exit }'
||
true
)
"
majorVersion
=
"
${
version
%%.*
}
"
(
set
-x
echo
"
$version
:
$fullVersion
"
cp
docker-entrypoint.sh
"
$version
/"
sed
-e
's/%%PG_MAJOR%%/'
"
$version
"
'/g;'
\
-e
's/%%PG_VERSION%%/'
"
$fullVersion
"
'/g'
\
...
...
@@ -62,7 +62,6 @@ for version in "${versions[@]}"; do
# Provides: postgresql-contrib-10
sed
-i
-e
'/postgresql-contrib-/d'
"
$version
/Dockerfile"
fi
)
# TODO figure out what to do with odd version numbers here, like release candidates
srcVersion
=
"
${
fullVersion
%%-*
}
"
...
...
@@ -74,8 +73,7 @@ for version in "${versions[@]}"; do
if
[
!
-d
"
$version
/
$variant
"
]
;
then
continue
fi
(
set
-x
cp
docker-entrypoint.sh
"
$version
/
$variant
/"
sed
-i
's/gosu/su-exec/g'
"
$version
/
$variant
/docker-entrypoint.sh"
sed
-e
's/%%PG_MAJOR%%/'
"
$version
"
'/g'
\
...
...
@@ -113,7 +111,7 @@ for version in "${versions[@]}"; do
;;
esac
sed
-i
's/%%UUID_CONFIG_FLAG%%/'
"
$uuidConfigFlag
"
'/'
"
$version
/
$variant
/Dockerfile"
)
travisEnv
=
"
\n
- VERSION=
$version
VARIANT=
$variant$travisEnv
"
done
...
...
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