Skip to content

Commit

Permalink
Use https in update.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
J0WI committed Jul 28, 2019
1 parent 51f9523 commit 2061adf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ for version in "${versions[@]}"; do
debianSuite="${debianVariant%%-*}" # "stretch", etc

fullVersion="$(
curl -fsSL "http://repo.mysql.com/apt/debian/dists/$debianSuite/mysql-$version/binary-amd64/Packages.gz" \
curl -fsSL "https://repo.mysql.com/apt/debian/dists/$debianSuite/mysql-$version/binary-amd64/Packages.gz" \
| gunzip \
| awk -F ': ' '
$1 == "Package" {
Expand All @@ -38,7 +38,7 @@ for version in "${versions[@]}"; do
-e 's/^(ENV MYSQL_VERSION) .*/\1 '"$fullVersion"'/' \
-e 's/^(ENV MYSQL_MAJOR) .*/\1 '"$version"'/' \
-e 's/^(FROM) .*/\1 debian:'"$debianVariant"'/' \
-e 's!(http://repo.mysql.com/apt/debian/) [^ ]+!\1 '"$debianSuite"'!' \
-e 's!(https://repo.mysql.com/apt/debian/) [^ ]+!\1 '"$debianSuite"'!' \
"$version/Dockerfile"
)
done

0 comments on commit 2061adf

Please sign in to comment.