Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
argo
argonix
Commits
b413a638
Commit
b413a638
authored
Mar 01, 2019
by
Valentin Reis
Browse files
move TMPDIR statement
parent
5a2266b5
Pipeline
#5763
passed with stage
in 21 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/Argonix.hs
View file @
b413a638
...
...
@@ -258,7 +258,6 @@ setupSystem sa = do
vshell
"sudo rm -rf nixtmpdir"
empty
>>=
\
case
ExitSuccess
->
printInfo
"removed ./nixtmpdir"
ExitFailure
n
->
die
(
"Failed to remove ./nixtmpdir "
<>
repr
n
)
liftIO
$
createAndSetTMPDIR
"nixtmpdir"
doVerbose
$
printInfo
"running nix-build for the containers attribute."
doVerbose
$
printCommand
$
"nix-build "
<>
pack
(
unwords
(
nixArguments
"containers"
sa
))
...
...
@@ -280,6 +279,7 @@ setupSystem sa = do
ExitSuccess
->
return
()
ExitFailure
n
->
die
(
"Setting suid bit failed with exit code "
<>
repr
n
)
vshell
"sudo /tmp/argo_nodeos_config --clean_config=kill_content:true"
empty
liftIO
$
createAndSetTMPDIR
"nixtmpdir"
void
$
printInfo
"Done setting the environment for nix-build up."
where
vshell
=
verboseShell
verbose
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment