summaryrefslogtreecommitdiff
path: root/src/Propellor/Property/Tor.hs
diff options
context:
space:
mode:
authorJoey Hess2015-02-27 19:01:11 -0400
committerJoey Hess2015-02-27 19:01:11 -0400
commitf0a4e642c490c4a91e62788e0c46f192b402e7f0 (patch)
tree88354cbd6d6a7d49bc3e4056b0240f2267c0cf41 /src/Propellor/Property/Tor.hs
parente8b0e7c6ca34365710d1066984bd3d7026621b70 (diff)
propellor spin
Diffstat (limited to 'src/Propellor/Property/Tor.hs')
-rw-r--r--src/Propellor/Property/Tor.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Propellor/Property/Tor.hs b/src/Propellor/Property/Tor.hs
index bf03d631..27c9761f 100644
--- a/src/Propellor/Property/Tor.hs
+++ b/src/Propellor/Property/Tor.hs
@@ -9,6 +9,7 @@ import Utility.DataUnits
import System.Posix.Files
import Data.Char
+import Data.List
type HiddenServiceName = String
@@ -73,7 +74,7 @@ configured settings = File.fileProperty "tor configured" go mainConfig
`onChange` restarted
where
ks = map fst settings
- go ls = map toconfig $
+ go ls = sort $ map toconfig $
filter (\(k, _) -> k `notElem` ks) (map fromconfig ls)
++ settings
toconfig (k, v) = k ++ " " ++ v