From 3d55a6c8d2b686d1150b7eead5c39cb359c7d0be Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 9 May 2018 19:13:18 -0400 Subject: propellor spin --- src/Propellor/Property/SiteSpecific/JoeySites.hs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/Propellor/Property') 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" -- cgit v1.2.3