Merge pull request #2746 from justincormack/mkdir-state

Create state dir before trying to touch file in it
This commit is contained in:
Rolf Neugebauer 2017-11-16 17:17:59 +00:00 committed by GitHub
commit e0c0a72bda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -82,6 +82,7 @@ if [ -n "${KUBE_CLEAR_STATE}" ] ; then
fi
fi
mkdir -p "${state}"
touch $state/metadata.json
if [ -n "${kubeadm_data}" ] ; then
echo "{ \"kubeadm\": { \"entries\": { ${kubeadm_data} } } }" > $state/metadata.json