propellor spin

This commit is contained in:
Joey Hess 2014-11-18 18:15:04 -04:00
parent f8917a505e
commit 8f5166748a
Failed to extract signature
1 changed files with 2 additions and 2 deletions

View File

@ -209,14 +209,14 @@ spin hn hst = do
cacheparams <- toCommand <$> sshCachingParams hn
comm cacheparams =<< hostprivdata
unlessM (boolSystem "ssh" (map Param (cacheparams ++ [user, runcmd]))) $
unlessM (boolSystem "ssh" (map Param (cacheparams ++ ["-t", user, runcmd]))) $
error $ "remote propellor failed (running: " ++ runcmd ++")"
where
hostprivdata = show . filterPrivData hst <$> decryptPrivData
comm cacheparams privdata =
withBothHandles createProcessSuccess
(proc "ssh" $ cacheparams ++ ["-t", user, bootstrapcmd])
(proc "ssh" $ cacheparams ++ [ user, bootstrapcmd])
(comm' cacheparams privdata)
comm' cacheparams privdata (toh, fromh) = loop
where