From 1ef455d37df053a70a7976c7dee39fe67a2361f0 Mon Sep 17 00:00:00 2001 From: Joshua Tauberer Date: Wed, 10 Jun 2015 09:33:47 -0400 Subject: [PATCH] bootstrap.sh needs to apt-get update before it does an apt-get install, fixes #431 --- setup/bootstrap.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/setup/bootstrap.sh b/setup/bootstrap.sh index 2cfd3470..65a37d9b 100644 --- a/setup/bootstrap.sh +++ b/setup/bootstrap.sh @@ -18,9 +18,12 @@ fi # Clone the Mail-in-a-Box repository if it doesn't exist. if [ ! -d $HOME/mailinabox ]; then - echo Installing git . . . - DEBIAN_FRONTEND=noninteractive apt-get -q -q install -y git < /dev/null - echo + if [ ! -f /usr/bin/git ]; then + echo Installing git . . . + apt-get -q -q update + DEBIAN_FRONTEND=noninteractive apt-get -q -q install -y git < /dev/null + echo + fi echo Downloading Mail-in-a-Box $TAG. . . git clone \