improve
This commit is contained in:
parent
3368bdd0a1
commit
38e626da7f
|
@ -6,7 +6,6 @@ import Utility.SafeCommand
|
|||
type HostName = String
|
||||
|
||||
set :: HostName -> Property
|
||||
set hostname = combineProperties ("hostname " ++ hostname)
|
||||
[ fileHasContent "/etc/hostname" [hostname]
|
||||
, cmdProperty "hostname" [Param hostname]
|
||||
]
|
||||
set hostname =
|
||||
fileHasContent "/etc/hostname" [hostname]
|
||||
`onChange` cmdProperty "hostname" [Param hostname]
|
||||
|
|
Loading…
Reference in New Issue