diff options
| author | Joey Hess <joeyh@joeyh.name> | 2018-05-17 10:41:12 -0400 |
|---|---|---|
| committer | Joey Hess <joeyh@joeyh.name> | 2018-05-17 10:41:12 -0400 |
| commit | 2f2fa9a9ca1e7546bc97c4e0b498e77f093c47a1 (patch) | |
| tree | 244055316aecad6ad4d8ad7684f67ad584991f2e /src | |
| parent | b2b7c2501006593bec0ef3294e1a45b3926c194b (diff) | |
| parent | 3d55a6c8d2b686d1150b7eead5c39cb359c7d0be (diff) | |
Merge branch 'joeyconfig'
Diffstat (limited to 'src')
| -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" |
