From 0ab0216d0b400fae78a6a6916ef9f82ed31dc0fa Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sat, 29 Mar 2014 23:45:48 -0400 Subject: configure hostname etc --- Property/Hostname.hs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Property/Hostname.hs (limited to 'Property/Hostname.hs') diff --git a/Property/Hostname.hs b/Property/Hostname.hs new file mode 100644 index 00000000..b4c28a2b --- /dev/null +++ b/Property/Hostname.hs @@ -0,0 +1,15 @@ +module Property.Hostname where + +import Data.List +import System.Posix +import Control.Applicative +import Data.Maybe + +import Property +import Utility.SafeCommand +import Utility.Exception + +type HostName = String + +set :: HostName -> Property +set hostname = fileHasContent "/etc/hostname" [hostname] -- cgit v1.3-2-g0d8e