From a3eb9e5845af6bd36999d2688547959eea015d3c Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 17 Apr 2019 18:04:32 -0400 Subject: propellor spin --- src/Propellor/Property/SiteSpecific/JoeySites.hs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Propellor/Property/SiteSpecific/JoeySites.hs b/src/Propellor/Property/SiteSpecific/JoeySites.hs index dc81ee3e..f5812e7e 100644 --- a/src/Propellor/Property/SiteSpecific/JoeySites.hs +++ b/src/Propellor/Property/SiteSpecific/JoeySites.hs @@ -905,6 +905,7 @@ house user hosts ctx sshkey = propertyList "home automation" $ props & Apt.installed ["python", "python-pymodbus", "rrdtool", "rsync"] & Git.cloned user "https://git.joeyh.name/git/joey/house.git" d Nothing & Git.cloned user "https://git.joeyh.name/git/reactive-banana-automation.git" (d "reactive-banana-automation") Nothing + & websitesymlink & build & Systemd.enabled setupservicename `requires` setupserviceinstalled @@ -1026,6 +1027,13 @@ house user hosts ctx sshkey = propertyList "home automation" $ props -- rsync server command to be updated too. rsynccommand = "rsync -e 'ssh -i" ++ sshkeyfile ++ "' -avz rrds/ joey@kitenet.net:/srv/web/house.joeyh.name/rrds/" + websitesymlink :: Property UnixLike + websitesymlink = check (not . isSymbolicLink <$> getSymbolicLinkStatus "/var/www/html") + (property "website symlink" $ makeChange $ do + removeDirectoryRecursive "/var/www/html" + createSymbolicLink d "/var/www/html" + ) + homerouterWifiInterfaceOld :: String homerouterWifiInterfaceOld = "wlx00c0ca82eb78" -- thinkpenguin wifi adapter -- cgit v1.2.3