diff --git a/scripts/create-ngrok.sh b/scripts/create-ngrok.sh index 6b911adaa..cc416b2c1 100755 --- a/scripts/create-ngrok.sh +++ b/scripts/create-ngrok.sh @@ -4,7 +4,10 @@ PATH_NGROK="/home/vagrant/.config/ngrok" PATH_CONFIG="${PATH_NGROK}/ngrok.yml" # Only create a ngrok config file if there isn't one already there. -if [ ! -f $PATH_CONFIG ] -then -mkdir -p $PATH_NGROK && echo "web_addr: $1:4040" > $PATH_CONFIG +if [ ! -f $PATH_CONFIG ]; then + mkdir -p "$PATH_NGROK" + cat > "$PATH_CONFIG" << EOF +version: 2 +web_addr: $1:4040 +EOF fi