Show LICENSES in /etc/motd

Plumb through from the server tarball to
/usr/local/share/docs/kubernetes/LICENSES, then display in the motd.
This commit is contained in:
Zach Loafman
2016-03-02 15:19:40 -08:00
parent ec77d0841d
commit 820842036b
3 changed files with 18 additions and 0 deletions

View File

@@ -66,8 +66,10 @@ echo "+++ Install binaries from tar: $1"
tar -xz -C "${KUBE_TEMP}" -f "$1"
mkdir -p /srv/salt-new/salt/kube-bins
mkdir -p /srv/salt-new/salt/kube-addons-images
mkdir -p /srv/salt-new/salt/kube-docs
cp -v "${KUBE_TEMP}/kubernetes/server/bin/"* /srv/salt-new/salt/kube-bins/
cp -v "${KUBE_TEMP}/kubernetes/addons/"* /srv/salt-new/salt/kube-addons-images/
cp -v "${KUBE_TEMP}/kubernetes/LICENSES" /srv/salt-new/salt/kube-docs/
kube_bin_dir="/srv/salt-new/salt/kube-bins";
docker_images_sls_file="/srv/salt-new/pillar/docker-images.sls";