mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-09-02 23:47:11 +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:
@@ -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
|
||||
|
Reference in New Issue
Block a user