blob: 204ff5d4ebbb214f09c61a9cdf67e17ce9755fc7 (
plain)
1
2
3
4
5
6
7
8
9
|
module Property.Hostname where
import Common
import qualified Property.File as File
set :: HostName -> Property
set hostname = "/etc/hostname" `File.hasContent` [hostname]
`onChange` cmdProperty "hostname" [Param hostname]
`describe` ("hostname " ++ hostname)
|