diff options
| author | Joey Hess <joeyh@joeyh.name> | 2018-05-09 19:13:18 -0400 |
|---|---|---|
| committer | Joey Hess <joeyh@joeyh.name> | 2018-05-09 19:13:18 -0400 |
| commit | 3d55a6c8d2b686d1150b7eead5c39cb359c7d0be (patch) | |
| tree | a4af5c2323557c6ee69698e12ef7598c197f7d07 /src/Propellor/Property/SiteSpecific/JoeySites.hs | |
| parent | 41c2492b93285a70c619609bc569cfe48e2535b5 (diff) | |
propellor spin
Diffstat (limited to 'src/Propellor/Property/SiteSpecific/JoeySites.hs')
| -rw-r--r-- | src/Propellor/Property/SiteSpecific/JoeySites.hs | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/Propellor/Property/SiteSpecific/JoeySites.hs b/src/Propellor/Property/SiteSpecific/JoeySites.hs index 46c90449..ceee7bf3 100644 --- a/src/Propellor/Property/SiteSpecific/JoeySites.hs +++ b/src/Propellor/Property/SiteSpecific/JoeySites.hs @@ -939,12 +939,13 @@ homePower user hosts ctx sshkey = propertyList "home power" $ props where d = "/var/www/html/homepower" sshkeyfile = d </> ".ssh/key" - build = userScriptProperty (User "joey") - [ "cd " ++ d </> "reactive-banana-automation" - , "cabal install" - , "cd " ++ d - , "make" - ] + build = check (not <$> doesFileExist (d </> "controller")) $ + userScriptProperty (User "joey") + [ "cd " ++ d </> "reactive-banana-automation" + , "cabal install" + , "cd " ++ d + , "make" + ] `assume` MadeChange `requires` Apt.installed [ "ghc", "cabal-install", "make" |
