mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-20 09:39:08 +00:00
Merge pull request #2746 from justincormack/mkdir-state
Create state dir before trying to touch file in it
This commit is contained in:
commit
e0c0a72bda
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user