summaryrefslogtreecommitdiff
path: root/Property
diff options
context:
space:
mode:
authorJoey Hess2014-03-30 19:22:10 -0400
committerJoey Hess2014-03-30 19:22:10 -0400
commit2172ba82ffac7ab0de49f8c39f34b1bff39c025e (patch)
treef258bda9b26da9d677829a6308d950e8ae87ab99 /Property
parent808392f21e7bfb36358a483e9e05f297859ba55d (diff)
propellor spin
Diffstat (limited to 'Property')
-rw-r--r--Property/User.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Property/User.hs b/Property/User.hs
index dcbf56c9..661a6f8a 100644
--- a/Property/User.hs
+++ b/Property/User.hs
@@ -22,8 +22,8 @@ nuked user _ = check (isJust <$> homedir user) $ cmdProperty "userdel"
]
`describe` ("nuked user " ++ user)
-setPassword :: UserName -> Property
-setPassword user = Property (user ++ " password set") $
+hasPassword :: UserName -> Property
+hasPassword user = Property (user ++ " has password") $
withPrivData (Password user) $ \password -> makeChange $
withHandle StdinHandle createProcessSuccess
(proc "chpasswd" []) $ \h -> do