From 128e16472a03929b089dcf44e28c651edcefcd43 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sat, 22 Nov 2014 01:13:53 -0400 Subject: compress tarball 11 mb -> 4 mb --- src/Propellor/Server.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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 ] -- cgit v1.2.3