summaryrefslogtreecommitdiff
path: root/src/Propellor/CmdLine.hs
diff options
context:
space:
mode:
authorJoey Hess2014-11-18 00:41:06 -0400
committerJoey Hess2014-11-18 00:42:12 -0400
commit1a906048511cf606b15d28c2f151ef8e1d848a50 (patch)
tree679285c5c0aed91f98bef0000c44b04228219fe2 /src/Propellor/CmdLine.hs
parent194785b556b2712f5e56672d8915fb939de6e59a (diff)
ssh won't allocate a tty; work around
stdin is not a terminal, drat ssh I don't much like this workaround
Diffstat (limited to 'src/Propellor/CmdLine.hs')
-rw-r--r--src/Propellor/CmdLine.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Propellor/CmdLine.hs b/src/Propellor/CmdLine.hs
index d6c85c08..21c4d95e 100644
--- a/src/Propellor/CmdLine.hs
+++ b/src/Propellor/CmdLine.hs
@@ -189,7 +189,7 @@ spin hn hst = do
where
hostprivdata = show . filterPrivData hst <$> decryptPrivData
- go cacheparams url privdata = withBothHandles createProcessSuccess (proc "ssh" $ cacheparams ++ ["-t", user, bootstrapcmd]) $ \(toh, fromh) -> do
+ go cacheparams url privdata = withBothHandles createProcessSuccess (proc "ssh" $ cacheparams ++ [user, bootstrapcmd]) $ \(toh, fromh) -> do
let finish = do
senddata toh "privdata" privDataMarker privdata
hClose toh
@@ -303,6 +303,7 @@ boot h = do
makePrivDataDir
maybe noop (writeFileProtected privDataLocal) $
fromMarked privDataMarker reply
+ forceConsoleMode
mainProperties h
getUrl :: IO String
@@ -364,4 +365,3 @@ sshCachingParams hn = do
[ Param "localhost" ]
nukeFile f
tenminutes = 600
-sshCachingParams hn = return []