summaryrefslogtreecommitdiff
path: root/Property/Hostname.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Property/Hostname.hs')
-rw-r--r--Property/Hostname.hs7
1 files changed, 3 insertions, 4 deletions
diff --git a/Property/Hostname.hs b/Property/Hostname.hs
index 0529d213..7baf7178 100644
--- a/Property/Hostname.hs
+++ b/Property/Hostname.hs
@@ -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]