From fed18bc60db2f262363cb4b802bb11ea6d881621 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sat, 18 Mar 2017 23:51:09 -0400 Subject: Tor: Restart daemon after installing private key. --- debian/changelog | 5 +++-- src/Propellor/Property/Tor.hs | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index 9c9b793f..dfebc850 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,8 +1,9 @@ -propellor (4.0.1) UNRELEASED; urgency=medium +propellor (4.0.1) unstable; urgency=medium * Fix build with pre-AMP ghc. + * Tor: Restart daemon after installing private key. - -- Joey Hess Sat, 18 Mar 2017 19:40:35 -0400 + -- Joey Hess Sat, 18 Mar 2017 20:19:41 -0400 propellor (4.0.0) unstable; urgency=medium diff --git a/src/Propellor/Property/Tor.hs b/src/Propellor/Property/Tor.hs index 24d5b687..849c60d0 100644 --- a/src/Propellor/Property/Tor.hs +++ b/src/Propellor/Property/Tor.hs @@ -56,6 +56,7 @@ named n = configured [("Nickname", n')] torPrivKey :: Context -> Property (HasInfo + DebianLike) torPrivKey context = f `File.hasPrivContent` context `onChange` File.ownerGroup f user (userGroup user) + `onChange` restarted `requires` torPrivKeyDirExists where f = torPrivKeyDir "secret_id_key" -- cgit v1.2.3