blob: 38e9dbe86ecfaf352c599a68cb08397a05aa7d46 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
module Property.Hostname where
import Property
import qualified Property.File as File
import Utility.SafeCommand
type HostName = String
set :: HostName -> Property
set hostname = "/etc/hostname" `File.hasContent` [hostname]
`onChange` cmdProperty "hostname" [Param hostname]
|