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.
This commit is contained in:
Joey Hess 2014-07-07 02:04:21 -04:00
parent bc8b7f2173
commit 8f46b7ab68
2 changed files with 8 additions and 1 deletions

6
debian/changelog vendored
View File

@ -1,3 +1,9 @@
propellor (0.8.1) UNRELEASED; urgency=medium
* Run apt-get update in initial bootstrap.
-- Joey Hess <joeyh@debian.org> 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,

View File

@ -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 " && "