Skip to content

Commit

Permalink
Merge pull request #377 from nickjj/deprecate-nightly
Browse files Browse the repository at this point in the history
Deprecate the nightly channel
  • Loading branch information
neersighted authored Sep 11, 2023
2 parents b9139c0 + c3499f5 commit e5543d4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ VERSION="${VERSION#v}"
# * stable
# * test
# * edge (deprecated)
# * nightly (unmaintained)
# * nightly (deprecated)
DEFAULT_CHANNEL_VALUE="stable"
if [ -z "$CHANNEL" ]; then
CHANNEL=$DEFAULT_CHANNEL_VALUE
Expand Down Expand Up @@ -150,7 +150,7 @@ case "$CHANNEL" in
stable|test)
;;
edge|nightly)
>&2 echo "DEPRECATED: the $CHANNEL channel has been deprecated and no longer supported by this script."
>&2 echo "DEPRECATED: the $CHANNEL channel has been deprecated and is no longer supported by this script."
exit 1
;;
*)
Expand Down
8 changes: 3 additions & 5 deletions rootless-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ SCRIPT_COMMIT_SHA=UNKNOWN
# This script should be run with an unprivileged user and install/setup Docker under $HOME/bin/.

# The channel to install from:
# * nightly
# * test
# * stable
# * nightly (deprecated)
DEFAULT_CHANNEL_VALUE="stable"
if [ -z "$CHANNEL" ]; then
CHANNEL=$DEFAULT_CHANNEL_VALUE
Expand All @@ -45,12 +45,10 @@ case "$CHANNEL" in
STATIC_RELEASE_ROOTLESS_URL="https://download.docker.com/linux/static/$CHANNEL/$(uname -m)/docker-rootless-extras-${TEST_LATEST}.tgz"
;;
"nightly")
echo "# Installing nightly"
STATIC_RELEASE_URL="https://master.dockerproject.org/linux/$(uname -m)/docker.tgz"
STATIC_RELEASE_ROOTLESS_URL="https://master.dockerproject.org/linux/$(uname -m)/docker-rootless-extras.tgz"
>&2 echo "DEPRECATED: the nightly channel has been deprecated and is no longer supported by this script."; exit 1
;;
*)
>&2 echo "Aborting because of unknown CHANNEL \"$CHANNEL\". Set \$CHANNEL to either \"stable\", \"test\", or \"nightly\"."; exit 1
>&2 echo "Aborting because of unknown CHANNEL \"$CHANNEL\". Set \$CHANNEL to either \"stable\" or \"test\"."; exit 1
;;
esac

Expand Down

0 comments on commit e5543d4

Please sign in to comment.