summaryrefslogtreecommitdiff
path: root/Property/Tor.hs
diff options
context:
space:
mode:
authorJoey Hess2014-03-30 13:12:33 -0400
committerJoey Hess2014-03-30 13:12:33 -0400
commit8e7b296e820e7513c7846ceeb3fbd87d60bc95f4 (patch)
tree4eb80ad32b42ee871f5704cd1af99baf9e8cacc6 /Property/Tor.hs
parente741b7b82e0b5be2809d1da7f54d8b0fcd0449e3 (diff)
split out Property.FIle
Diffstat (limited to 'Property/Tor.hs')
-rw-r--r--Property/Tor.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Property/Tor.hs b/Property/Tor.hs
index b26ba68e..7f7e7245 100644
--- a/Property/Tor.hs
+++ b/Property/Tor.hs
@@ -2,12 +2,13 @@ module Property.Tor where
import Property
import Utility.SafeCommand
+import qualified Property.File as File
import qualified Property.Apt as Apt
isBridge :: Property
isBridge = setup `requires` Apt.installed ["tor"]
where
- setup = fileHasContent "/etc/tor/torrc"
+ setup = "/etc/tor/torrc" `File.hasContent`
[ "SocksPort 0"
, "ORPort 443"
, "BridgeRelay 1"