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