summaryrefslogtreecommitdiff
path: root/src/Propellor
diff options
context:
space:
mode:
authorJoey Hess2014-11-22 01:13:53 -0400
committerJoey Hess2014-11-22 01:13:53 -0400
commit128e16472a03929b089dcf44e28c651edcefcd43 (patch)
tree9d5d540b2cf75029b34ace3acebff4862ef7a324 /src/Propellor
parentc0662e6258e5fc8f5755f01de7d7184c532c6431 (diff)
compress tarball
11 mb -> 4 mb
Diffstat (limited to 'src/Propellor')
-rw-r--r--src/Propellor/Server.hs4
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
]