mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-19 09:16:29 +00:00
Create state dir before trying to touch file in it
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
parent
10bae91564
commit
4a4db4642f
@ -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