diff options
author | Joey Hess <joeyh@joeyh.name> | 2018-05-04 14:34:56 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2018-05-04 14:50:19 -0400 |
commit | 130283c92f9be4fc7d6a7a86aeb591dc05a7bf6c (patch) | |
tree | 2d8b05d7344a17817711fe7fc0eb9ff3c1bba594 | |
parent | c9a1d90ce84f236d7a34b64adbe7aba2eb5eabb8 (diff) |
update
-rw-r--r-- | src/Propellor/Property/SiteSpecific/JoeySites.hs | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/src/Propellor/Property/SiteSpecific/JoeySites.hs b/src/Propellor/Property/SiteSpecific/JoeySites.hs index 9d7423d7..e3619c2a 100644 --- a/src/Propellor/Property/SiteSpecific/JoeySites.hs +++ b/src/Propellor/Property/SiteSpecific/JoeySites.hs @@ -915,7 +915,8 @@ homePowerMonitor user hosts ctx sshkey = propertyList "home power monitor" $ pro & Apache.installed & Apt.installed ["python", "python-pymodbus", "rrdtool", "rsync"] & File.ownerGroup "/var/www/html" user (userGroup user) - & Git.cloned user "git://git.kitenet.net/joey/homepower" d Nothing + & Git.cloned user "https://git.joeyh.name/git/joey/homepower.git" d Nothing + & Git.cloned user "https://git.joeyh.name/git/reactive-banana-automation.git" (d </> "reactive-banana-automation") Nothing & buildpoller & Systemd.enabled setupservicename `requires` setupserviceinstalled @@ -937,11 +938,21 @@ homePowerMonitor user hosts ctx sshkey = propertyList "home power monitor" $ pro d = "/var/www/html/homepower" sshkeyfile = d </> ".ssh/key" buildpoller = userScriptProperty (User "joey") - [ "cd " ++ d + [ "cd " ++ d </> "reactive-banana-automation" + , "cabal install" + , "cd " ++ d , "make" ] `assume` MadeChange - `requires` Apt.installed ["ghc", "make"] + `requires` Apt.installed + [ "ghc", "cabal-install", "make" + , "libghc-http-types-dev" + , "libghc-stm-dev" + , "libghc-aeson-dev" + , "libghc-wai-dev" + , "libghc-warp-dev" + , "libghc-reactive-banana-dev" + ] servicename = "homepower" servicefile = "/etc/systemd/system/" ++ servicename ++ ".service" serviceinstalled = servicefile `File.hasContent` @@ -953,6 +964,7 @@ homePowerMonitor user hosts ctx sshkey = propertyList "home power monitor" $ pro , "WorkingDirectory=" ++ d , "User=joey" , "Group=joey" + , "Restart=always" , "" , "[Install]" , "WantedBy=multi-user.target" |