From 4c86f8adf5d752f973b1cc24476e172350f9daf5 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 22 Apr 2015 22:36:45 -0400 Subject: propellor spin --- src/Propellor/Property/SiteSpecific/IABak.hs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/Propellor') diff --git a/src/Propellor/Property/SiteSpecific/IABak.hs b/src/Propellor/Property/SiteSpecific/IABak.hs index f50482ff..650014f4 100644 --- a/src/Propellor/Property/SiteSpecific/IABak.hs +++ b/src/Propellor/Property/SiteSpecific/IABak.hs @@ -42,6 +42,9 @@ registrationServer knownhosts = propertyList "iabak registration server" $ props & cmdProperty "ln" ["-sf", "/home/registrar/IA.BAK/registrar/register.cgi", link] & cmdProperty "chown" ["-h", "registrar:registrar", link] & File.containsLine "/etc/sudoers" "www-data ALL=(registrar) NOPASSWD:/home/registrar/IA.BAK/registrar/register.pl" + & Apt.installed ["kgb-client"] + & File.hasPrivContentExposed "/etc/kgb-bot/kgb-client.conf" anyContext + `requires` File.dirExists "/etc/kgb-bot/" where link = "/usr/lib/cgi-bin/register.cgi" -- cgit v1.2.3 From 89b6629464b6dbd27e8393181421e0089ae5f5f4 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 23 Apr 2015 09:24:23 -0400 Subject: fix type signature, filepath and string params were flipped thanks, gueux --- src/Propellor/Property/File.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Propellor') diff --git a/src/Propellor/Property/File.hs b/src/Propellor/Property/File.hs index 46704746..adced166 100644 --- a/src/Propellor/Property/File.hs +++ b/src/Propellor/Property/File.hs @@ -35,7 +35,7 @@ hasPrivContentExposed f = hasPrivContentExposedFrom (PrivDataSourceFile (PrivFil hasPrivContentExposedFrom :: (IsContext c, IsPrivDataSource s) => s -> FilePath -> c -> Property HasInfo hasPrivContentExposedFrom = hasPrivContent' writeFile -hasPrivContent' :: (IsContext c, IsPrivDataSource s) => (String -> FilePath -> IO ()) -> s -> FilePath -> c -> Property HasInfo +hasPrivContent' :: (IsContext c, IsPrivDataSource s) => (FilePath -> String -> IO ()) -> s -> FilePath -> c -> Property HasInfo hasPrivContent' writer source f context = withPrivData source context $ \getcontent -> property desc $ getcontent $ \privcontent -> -- cgit v1.2.3