summaryrefslogtreecommitdiff
path: root/src/Propellor/CmdLine.hs
diff options
context:
space:
mode:
authorJoey Hess2014-07-07 02:04:21 -0400
committerJoey Hess2014-07-07 02:04:21 -0400
commit8f46b7ab683a36eebb3fd99566c389bd45a47676 (patch)
treedb564ee004a5a00a9e6751de89a17fd63a5d90aa /src/Propellor/CmdLine.hs
parentbc8b7f2173835cb507d81c084fa804bdb3761bdd (diff)
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.
Diffstat (limited to 'src/Propellor/CmdLine.hs')
-rw-r--r--src/Propellor/CmdLine.hs3
1 files changed, 2 insertions, 1 deletions
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 " && "