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. --- debian/changelog | 6 ++++++ src/Propellor/CmdLine.hs | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 3c84ac91..dca286be 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +propellor (0.8.1) UNRELEASED; urgency=medium + + * Run apt-get update in initial bootstrap. + + -- Joey Hess Mon, 07 Jul 2014 02:03:46 -0400 + propellor (0.8.0) unstable; urgency=medium * Completely reworked privdata storage. There is now a single file, 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.2.3