You've already forked postgres
mirror of
https://github.com/docker-library/postgres.git
synced 2025-07-31 09:04:30 +03:00
Adjust "update.sh" output to be more concise
This commit is contained in:
10
update.sh
10
update.sh
@ -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)"
|
fullVersion="$(echo "$versionList" | awk -F ': ' '$1 == "Package" { pkg = $2 } $1 == "Version" && pkg == "postgresql-'"$version"'" { print $2; exit }' || true)"
|
||||||
majorVersion="${version%%.*}"
|
majorVersion="${version%%.*}"
|
||||||
|
|
||||||
(
|
echo "$version: $fullVersion"
|
||||||
set -x
|
|
||||||
cp docker-entrypoint.sh "$version/"
|
cp docker-entrypoint.sh "$version/"
|
||||||
sed -e 's/%%PG_MAJOR%%/'"$version"'/g;' \
|
sed -e 's/%%PG_MAJOR%%/'"$version"'/g;' \
|
||||||
-e 's/%%PG_VERSION%%/'"$fullVersion"'/g' \
|
-e 's/%%PG_VERSION%%/'"$fullVersion"'/g' \
|
||||||
@ -62,7 +62,6 @@ for version in "${versions[@]}"; do
|
|||||||
# Provides: postgresql-contrib-10
|
# Provides: postgresql-contrib-10
|
||||||
sed -i -e '/postgresql-contrib-/d' "$version/Dockerfile"
|
sed -i -e '/postgresql-contrib-/d' "$version/Dockerfile"
|
||||||
fi
|
fi
|
||||||
)
|
|
||||||
|
|
||||||
# TODO figure out what to do with odd version numbers here, like release candidates
|
# TODO figure out what to do with odd version numbers here, like release candidates
|
||||||
srcVersion="${fullVersion%%-*}"
|
srcVersion="${fullVersion%%-*}"
|
||||||
@ -74,8 +73,7 @@ for version in "${versions[@]}"; do
|
|||||||
if [ ! -d "$version/$variant" ]; then
|
if [ ! -d "$version/$variant" ]; then
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
(
|
|
||||||
set -x
|
|
||||||
cp docker-entrypoint.sh "$version/$variant/"
|
cp docker-entrypoint.sh "$version/$variant/"
|
||||||
sed -i 's/gosu/su-exec/g' "$version/$variant/docker-entrypoint.sh"
|
sed -i 's/gosu/su-exec/g' "$version/$variant/docker-entrypoint.sh"
|
||||||
sed -e 's/%%PG_MAJOR%%/'"$version"'/g' \
|
sed -e 's/%%PG_MAJOR%%/'"$version"'/g' \
|
||||||
@ -113,7 +111,7 @@ for version in "${versions[@]}"; do
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
sed -i 's/%%UUID_CONFIG_FLAG%%/'"$uuidConfigFlag"'/' "$version/$variant/Dockerfile"
|
sed -i 's/%%UUID_CONFIG_FLAG%%/'"$uuidConfigFlag"'/' "$version/$variant/Dockerfile"
|
||||||
)
|
|
||||||
travisEnv="\n - VERSION=$version VARIANT=$variant$travisEnv"
|
travisEnv="\n - VERSION=$version VARIANT=$variant$travisEnv"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user