Commit 34d82434 authored by Valentin Reis's avatar Valentin Reis
Browse files

Adds --no-preserve=mode to cp invokes

parent f8fd374b
Pipeline #6445 passed with stages
in 38 seconds
......@@ -220,7 +220,7 @@ setupSystem target sa = do
ExitFailure n ->
die ("Failed to remove /tmp/argo_nodeos_config" <> show n)
sVerbose
( "cp "
( "cp --no-preserve=mode "
<> toS nodeos_config
<> "/bin/argo_nodeos_config /tmp/argo_nodeos_config"
)
......@@ -271,7 +271,7 @@ wrap nixCommand target sa@ArgsCommon {..} = do
ExitFailure _ -> copyFailure (toS tmpDir) >> die "build failed."
where
copySuccess source = do
runProcessVerbose verbosity "cp" ["-Lr", source, "./result"] []
runProcessVerbose verbosity "cp" ["--no-preserve=mode -Lr", source, "./result"] []
runProcessVerbose verbosity "chmod" ["-R", "+w", "./result"] []
copyFailure source = do
runProcessVerbose verbosity "cp" ["-Lr", source, "./nixtmpdir"] []
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment