diff options
| author | Joey Hess <joey@kitenet.net> | 2014-11-22 01:13:53 -0400 |
|---|---|---|
| committer | Joey Hess <joey@kitenet.net> | 2014-11-22 01:13:53 -0400 |
| commit | 128e16472a03929b089dcf44e28c651edcefcd43 (patch) | |
| tree | 9d5d540b2cf75029b34ace3acebff4862ef7a324 /src | |
| parent | c0662e6258e5fc8f5755f01de7d7184c532c6431 (diff) | |
compress tarball
11 mb -> 4 mb
Diffstat (limited to 'src')
| -rw-r--r-- | src/Propellor/Server.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Propellor/Server.hs b/src/Propellor/Server.hs index 743490a4..19a2c901 100644 --- a/src/Propellor/Server.hs +++ b/src/Propellor/Server.hs @@ -147,7 +147,7 @@ sendPrecompiled hn = void $ actionMessage ("Uploading locally compiled propellor changeWorkingDirectory tmpdir withTmpFile "propellor.tar." $ \tarball _ -> allM id [ 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 "ssh" $ cacheparams ++ [Param ("root@"++hn), Param unpackcmd] ] @@ -156,7 +156,7 @@ sendPrecompiled hn = void $ actionMessage ("Uploading locally compiled propellor unpackcmd = shellWrap $ intercalate " && " [ "cd " ++ takeDirectory remotetarball - , "tar xf " ++ remotetarball + , "tar xzf " ++ remotetarball , "rm -f " ++ remotetarball ] |
