Fix an unbound variable error when CA_CERT isn't set.

This commit is contained in:
Robert Bailey 2015-05-14 15:42:16 -07:00
parent 9d6c032929
commit 9edc359de7

View File

@ -362,7 +362,7 @@ EOF
kube_proxy_kubeconfig_file="/srv/salt-overlay/salt/kube-proxy/kubeconfig"
if [ ! -e "${kube_proxy_kubeconfig_file}" ]; then
mkdir -p /srv/salt-overlay/salt/kube-proxy
if [[ ! -z "${CA_CERT}" ]]; then
if [[ ! -z "${CA_CERT:-}" ]]; then
(umask 077;
cat > "${kube_proxy_kubeconfig_file}" <<EOF
apiVersion: v1