reduce amount of time privdata is in ram
This commit is contained in:
parent
6d5919199d
commit
808392f21e
|
@ -52,9 +52,9 @@ defaultMain getprops = go =<< processCmdLine
|
||||||
spin :: HostName -> IO ()
|
spin :: HostName -> IO ()
|
||||||
spin host = do
|
spin host = do
|
||||||
url <- getUrl
|
url <- getUrl
|
||||||
privdata <- gpgDecrypt (privDataFile host)
|
|
||||||
void $ boolSystem "git" [Param "commit", Param "-a", Param "-m", Param "propellor spin"]
|
void $ boolSystem "git" [Param "commit", Param "-a", Param "-m", Param "propellor spin"]
|
||||||
void $ boolSystem "git" [Param "push"]
|
void $ boolSystem "git" [Param "push"]
|
||||||
|
privdata <- gpgDecrypt (privDataFile host)
|
||||||
withHandle StdinHandle createProcessSuccess
|
withHandle StdinHandle createProcessSuccess
|
||||||
(proc "ssh" ["root@"++host, bootstrap url]) $ \h -> do
|
(proc "ssh" ["root@"++host, bootstrap url]) $ \h -> do
|
||||||
hPutStr h $ unlines $ map (privDataMarker ++) $ lines privdata
|
hPutStr h $ unlines $ map (privDataMarker ++) $ lines privdata
|
||||||
|
|
Loading…
Reference in New Issue