Skip to content

Commit

Permalink
Cleanup /etc/motd after doc link shift
Browse files Browse the repository at this point in the history
  • Loading branch information
zmerlynn committed Mar 12, 2016
1 parent 7470405 commit 634c5a9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions cluster/gce/configure-vm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,6 @@ function set-broken-motd() {
function reset-motd() {
# kubelet is installed both on the master and nodes, and the version is easy to parse (unlike kubectl)
local -r version="$(/usr/local/bin/kubelet --version=true | cut -f2 -d " ")"
# This regex grabs the minor version, e.g. v1.2.
local -r minor="$(echo ${version} | sed -r "s/(v[0-9]+\.[0-9]+).*/\1/g")"
# This logic grabs either a release tag (v1.2.1 or v1.2.1-alpha.1),
# or the git hash that's in the build info.
local gitref="$(echo "${version}" | sed -r "s/(v[0-9]+\.[0-9]+\.[0-9]+)(-[a-z]+\.[0-9]+)?.*/\1\2/g")"
Expand All @@ -95,8 +93,8 @@ If it isn't, the closest tag is at:
Welcome to Kubernetes ${version}!
You can find documentation for this release at:
http://kubernetes.io/${minor}/
You can find documentation for Kubernetes at:
http://docs.kubernetes.io/
You can download the build image for this release at:
https://storage.googleapis.com/kubernetes-release/release/${version}/kubernetes-src.tar.gz
Expand All @@ -106,6 +104,7 @@ It is based on the Kubernetes source at:
${devel}
For Kubernetes copyright and licensing information, see:
/usr/local/share/doc/kubernetes/LICENSES
EOF
}

Expand Down

0 comments on commit 634c5a9

Please sign in to comment.