Commit a37af9b9 authored by Valentin Reis's avatar Valentin Reis

sudo tmpdir removal

parent dc73fd0f
Pipeline #5739 passed with stage
in 1 minute and 40 seconds
......@@ -251,13 +251,13 @@ setupSystem sa = do
$ inproc "mktemp" ["-d", "/tmp/deletable-nix-cache-XXXX"] empty
export "XDG_CACHE_HOME" $ lineToText cachedir
doVerbose $ printInfo $ lineToText cachedir <> " exported to XDG_CACHE_HOME"
liftIO $ createAndSetTMPDIR "./nixtmpdir"
vshell "sudo rm -rf result" empty >>= \case
ExitSuccess -> printInfo "removed ./result"
ExitFailure n -> die ("Failed to remove ./result " <> repr n)
vshell "sudo rm -rf nixtmpdir" empty >>= \case
ExitSuccess -> printInfo "removed ./result"
ExitFailure n -> die ("Failed to remove ./result " <> repr n)
liftIO $ createAndSetTMPDIR "./nixtmpdir"
doVerbose $ printInfo "running nix-build for the containers attribute."
doVerbose $ printCommand $ "nix-build " <> pack
(unwords (nixArguments "containers" sa))
......
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