look for /usr/local/propellor/.git to know if it's fully deployed

When propellor is deployed by uploading the binary, there's no git repo, so
each spin needs to re-upload it to get any config changes. This should be
rare since this is only intended to be used when taking over a host and
getting it properly set up from source, but it still needs to be supported.
This commit is contained in:
Joey Hess 2014-11-22 20:02:44 -04:00
parent 68a28d3ccc
commit eb946f109b
1 changed files with 1 additions and 1 deletions

View File

@ -190,7 +190,7 @@ spin target relay hst = do
mkcmd = shellWrap . intercalate " ; "
updatecmd = mkcmd
[ "if [ ! -d " ++ localdir ++ " ]"
[ "if [ ! -d " ++ localdir ++ "/.git ]"
, "then (" ++ intercalate " && "
[ "if ! git --version || ! make --version; then apt-get update && apt-get --no-install-recommends --no-upgrade -y install git make; fi"
, "echo " ++ toMarked statusMarker (show NeedGitClone)