From 8f46b7ab683a36eebb3fd99566c389bd45a47676 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 7 Jul 2014 02:04:21 -0400 Subject: Run apt-get update in initial bootstrap. For eg, Linode, which brings up hosts that have not updated at all so apt-get install doesn't work. --- src/Propellor/CmdLine.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/Propellor/CmdLine.hs') diff --git a/src/Propellor/CmdLine.hs b/src/Propellor/CmdLine.hs index bc5421e7..7b39cd24 100644 --- a/src/Propellor/CmdLine.hs +++ b/src/Propellor/CmdLine.hs @@ -210,7 +210,8 @@ spin hn hst = do bootstrapcmd = shellWrap $ intercalate " ; " [ "if [ ! -d " ++ localdir ++ " ]" , "then " ++ intercalate " && " - [ "apt-get --no-install-recommends --no-upgrade -y install git make" + [ "apt-get update" + , "apt-get --no-install-recommends --no-upgrade -y install git make" , "echo " ++ toMarked statusMarker (show NeedGitClone) ] , "else " ++ intercalate " && " -- cgit v1.3-2-g0d8e