diff options
| author | Joey Hess <joeyh@joeyh.name> | 2016-11-11 17:54:40 -0400 |
|---|---|---|
| committer | Joey Hess <joeyh@joeyh.name> | 2016-11-11 17:54:40 -0400 |
| commit | 4cbcfd3c386efb094b9e21dcb6e32111f9431f84 (patch) | |
| tree | db98e39ed645207990d77f8bf49138965f57881e /src/Propellor/Property/Group.hs | |
| parent | 2977e6abdf8eb9043fc722f8bb87ef60d42cb579 (diff) | |
| parent | dddfbc2f76d1d8be74d34b2d3d90e206d9f001a2 (diff) | |
Merge branch 'joeyconfig'
Diffstat (limited to 'src/Propellor/Property/Group.hs')
| -rw-r--r-- | src/Propellor/Property/Group.hs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Propellor/Property/Group.hs b/src/Propellor/Property/Group.hs index 58e49a86..f47867c1 100644 --- a/src/Propellor/Property/Group.hs +++ b/src/Propellor/Property/Group.hs @@ -1,6 +1,7 @@ module Propellor.Property.Group where import Propellor.Base +import Propellor.Property.User (hasGroup) type GID = Int @@ -12,3 +13,6 @@ exists (Group group') mgid = check test (cmdProperty "addgroup" (args mgid)) test = not . elem group' . words <$> readProcess "cut" ["-d:", "-f1", groupFile] args Nothing = [group'] args (Just gid) = ["--gid", show gid, group'] + +hasUser :: Group -> User -> Property DebianLike +hasUser = flip hasGroup |
