From b9fbfe41eab5759e88886ab6d29dc9a1c91a49d0 Mon Sep 17 00:00:00 2001 From: Brendan Melville Date: Wed, 4 Nov 2015 15:49:48 -0800 Subject: [PATCH] bootstrap will only create the log directory if it doesn't already exist. --- examples/bootstrap/bootstrap.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/bootstrap/bootstrap.sh b/examples/bootstrap/bootstrap.sh index 43db6b584..c80fd6a48 100755 --- a/examples/bootstrap/bootstrap.sh +++ b/examples/bootstrap/bootstrap.sh @@ -1,6 +1,9 @@ #!/bin/bash + LOGDIR=log -mkdir $LOGDIR +if [[ ! -d $LOGDIR ]]; then + mkdir $LOGDIR +fi KUBECTL=`which kubectl` if [[ -z $KUBECTL ]] ; then