propellor spin
This commit is contained in:
parent
ff49cf562c
commit
fbc57d6845
|
@ -40,7 +40,7 @@ setup propellorbin dest = do
|
||||||
return shim
|
return shim
|
||||||
|
|
||||||
file :: FilePath -> FilePath -> FilePath
|
file :: FilePath -> FilePath -> FilePath
|
||||||
file propellorbin dest = dest </> propellorbin
|
file propellorbin dest = dest </> takeFileName propellorbin
|
||||||
|
|
||||||
installFile :: FilePath -> FilePath -> IO ()
|
installFile :: FilePath -> FilePath -> IO ()
|
||||||
installFile top f = do
|
installFile top f = do
|
||||||
|
|
|
@ -10,3 +10,5 @@ set :: HostName -> Property
|
||||||
set hostname = "/etc/hostname" `File.hasContent` [hostname]
|
set hostname = "/etc/hostname" `File.hasContent` [hostname]
|
||||||
`onChange` cmdProperty "hostname" [hostname]
|
`onChange` cmdProperty "hostname" [hostname]
|
||||||
`describe` ("hostname " ++ hostname)
|
`describe` ("hostname " ++ hostname)
|
||||||
|
where
|
||||||
|
(host, domain) = separate (== '.') hostname
|
||||||
|
|
Loading…
Reference in New Issue