From 5855c75dd3e13c43b97e7a41785322bd58c2bbba Mon Sep 17 00:00:00 2001 From: Jeff Lindsay Date: Fri, 21 Jun 2013 16:43:02 -0700 Subject: [PATCH] dropping ruby dependency and cleaning up a simple if statement --- bootstrap.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/bootstrap.sh b/bootstrap.sh index a2f55f57e..ce1b4aa50 100644 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -5,7 +5,7 @@ DOCKER_PKG=${DOCKER_PKG:-"https://launchpad.net/~dotcloud/+archive/lxc-docker/+f apt-get update apt-get install -y linux-image-extra-`uname -r` apt-get install -y python-software-properties -apt-get install -y git ruby nginx make curl dnsutils +apt-get install -y git nginx make curl dnsutils cd /tmp wget "$DOCKER_PKG" @@ -21,9 +21,7 @@ else cd buildstep && make build fi -if [ -f /etc/nginx/nginx.conf ]; then - sed -i 's/# server_names_hash_bucket_size/server_names_hash_bucket_size/' /etc/nginx/nginx.conf -fi +[[ -f /etc/nginx/nginx.conf ]] && sed -i 's/# server_names_hash_bucket_size/server_names_hash_bucket_size/' /etc/nginx/nginx.conf /etc/init.d/nginx start start nginx-reloader