parent
c0662e6258
commit
128e16472a
|
@ -147,7 +147,7 @@ sendPrecompiled hn = void $ actionMessage ("Uploading locally compiled propellor
|
||||||
changeWorkingDirectory tmpdir
|
changeWorkingDirectory tmpdir
|
||||||
withTmpFile "propellor.tar." $ \tarball _ -> allM id
|
withTmpFile "propellor.tar." $ \tarball _ -> allM id
|
||||||
[ boolSystem "strip" [File me]
|
[ boolSystem "strip" [File me]
|
||||||
, boolSystem "tar" [Param "cf", File tarball, File shimdir]
|
, boolSystem "tar" [Param "czf", File tarball, File shimdir]
|
||||||
, boolSystem "scp" $ cacheparams ++ [File tarball, Param ("root@"++hn++":"++remotetarball)]
|
, boolSystem "scp" $ cacheparams ++ [File tarball, Param ("root@"++hn++":"++remotetarball)]
|
||||||
, boolSystem "ssh" $ cacheparams ++ [Param ("root@"++hn), Param unpackcmd]
|
, boolSystem "ssh" $ cacheparams ++ [Param ("root@"++hn), Param unpackcmd]
|
||||||
]
|
]
|
||||||
|
@ -156,7 +156,7 @@ sendPrecompiled hn = void $ actionMessage ("Uploading locally compiled propellor
|
||||||
|
|
||||||
unpackcmd = shellWrap $ intercalate " && "
|
unpackcmd = shellWrap $ intercalate " && "
|
||||||
[ "cd " ++ takeDirectory remotetarball
|
[ "cd " ++ takeDirectory remotetarball
|
||||||
, "tar xf " ++ remotetarball
|
, "tar xzf " ++ remotetarball
|
||||||
, "rm -f " ++ remotetarball
|
, "rm -f " ++ remotetarball
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue