summaryrefslogtreecommitdiff
path: root/src/Propellor/Property/SiteSpecific/JoeySites.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Propellor/Property/SiteSpecific/JoeySites.hs')
-rw-r--r--src/Propellor/Property/SiteSpecific/JoeySites.hs13
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"