summaryrefslogtreecommitdiff
path: root/src/Propellor/Property
diff options
context:
space:
mode:
authorJoey Hess2018-05-09 19:13:18 -0400
committerJoey Hess2018-05-09 19:13:18 -0400
commit3d55a6c8d2b686d1150b7eead5c39cb359c7d0be (patch)
treea4af5c2323557c6ee69698e12ef7598c197f7d07 /src/Propellor/Property
parent41c2492b93285a70c619609bc569cfe48e2535b5 (diff)
propellor spin
Diffstat (limited to 'src/Propellor/Property')
-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"