summaryrefslogtreecommitdiff
path: root/src/Propellor/Property/Localdir.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Propellor/Property/Localdir.hs')
-rw-r--r--src/Propellor/Property/Localdir.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Propellor/Property/Localdir.hs b/src/Propellor/Property/Localdir.hs
index 018a054b..2323f569 100644
--- a/src/Propellor/Property/Localdir.hs
+++ b/src/Propellor/Property/Localdir.hs
@@ -7,7 +7,7 @@ module Propellor.Property.Localdir where
import Propellor.Base
import Propellor.Git.Config
import Propellor.Types.Info
-import Propellor.Property.Chroot (inChroot)
+import Propellor.Types.Container
import Propellor.Property.Mount (partialBindMountsOf, umountLazy)
-- | Sets the url to use as the origin of propellor's git repository.
@@ -46,7 +46,7 @@ removed = check (doesDirectoryExist localdir) $
return NoChange
where
atend _ = do
- ifM inChroot
+ ifM (hasContainerCapability FilesystemContained)
-- In a chroot, all we have to do is unmount localdir,
-- and then delete it
( liftIO $ umountLazy localdir