summaryrefslogtreecommitdiff
path: root/src/Propellor/Property/DebianMirror.hs
diff options
context:
space:
mode:
authorFélix Sipma2015-09-12 16:33:16 +0200
committerJoey Hess2015-09-12 12:07:17 -0400
commit491f38584e8f7824dd397d81a9b90789eee14ed6 (patch)
tree9e7a5622488d83fc589ca2c7d2b7bb4204956ca0 /src/Propellor/Property/DebianMirror.hs
parent5bcc57d21f88aedaf708c93495370dc01ff8ee0a (diff)
DebianMirror: ensure mirror dir is owned by debmirror:debmirror
Signed-off-by: Félix Sipma <felix.sipma@no-log.org>
Diffstat (limited to 'src/Propellor/Property/DebianMirror.hs')
-rw-r--r--src/Propellor/Property/DebianMirror.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Propellor/Property/DebianMirror.hs b/src/Propellor/Property/DebianMirror.hs
index 252520c7..aeac8d42 100644
--- a/src/Propellor/Property/DebianMirror.hs
+++ b/src/Propellor/Property/DebianMirror.hs
@@ -30,6 +30,7 @@ mirror url dir suites archs sections source priorities crontimes = propertyList
[ Apt.installed ["debmirror"]
, User.accountFor "debmirror"
, File.dirExists dir
+ , File.ownerGroup dir (User "debmirror") (Group "debmirror")
, check (not . and <$> mapM suitemirrored suites) $ cmdProperty "debmirror" args
`describe` "debmirror setup"
, Cron.niceJob ("debmirror_" ++ dir) crontimes (User "debmirror") "/" $