bin/start-toxiproxy.sh in toxiproxy-0.1.3 vs bin/start-toxiproxy.sh in toxiproxy-0.1.4
- old
+ new
@@ -1,8 +1,9 @@
#!/bin/bash -e
VERSION='21a264cc75549c3ae837b606eb6e17ea'
+TOXIPROXY_LOG_DIR=${CIRCLE_ARTIFACTS:-'/tmp'}
echo "[start toxiproxy]"
curl --silent http://shopify-vagrant.s3.amazonaws.com/toxiproxy/toxiproxy-$VERSION -o ./bin/toxiproxy
chmod +x ./bin/toxiproxy
-nohup bash -c "./bin/toxiproxy > ${CIRCLE_ARTIFACTS}/toxiproxy.log 2>&1 &"
+nohup bash -c "./bin/toxiproxy > ${TOXIPROXY_LOG_DIR}/toxiproxy.log 2>&1 &"