summaryrefslogtreecommitdiff
path: root/src/Propellor
diff options
context:
space:
mode:
authorJoey Hess2015-04-22 22:36:45 -0400
committerJoey Hess2015-04-22 22:36:45 -0400
commit4c86f8adf5d752f973b1cc24476e172350f9daf5 (patch)
treea48cf5993b4996c34221ad1fc460c98e3b1b7e48 /src/Propellor
parentf083b9942ca1c8bd06ab477a873592ee6cb055a4 (diff)
propellor spin
Diffstat (limited to 'src/Propellor')
-rw-r--r--src/Propellor/Property/SiteSpecific/IABak.hs3
1 files changed, 3 insertions, 0 deletions
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"