Skip to content

Commit

Permalink
Tried some fixes around the environment variable stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Lol3rrr committed Dec 13, 2023
1 parent 18fee03 commit 556d034
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -354,10 +354,7 @@ pub async fn run(
})?;

copy_session
.write_to_file(
&script_content,
&format!("${{NOMAD_ALLOC_DIR}}{}", script_name),
)
.write_to_file(&script_content, &format!("$NOMAD_ALLOC_DIR{}", script_name))
.await
.map_err(|e| RunError::Other(Cow::Borrowed("Writing File to ExecSession")))?;

Expand All @@ -375,7 +372,7 @@ pub async fn run(
})?
.execute_command(
&format!(
"mkdir /mnt/alloc/builds; cd /mnt/alloc/builds; chmod +x ${{NOMAD_ALLOC_DIR}}{}; exit 0;",
"mkdir /mnt/alloc/builds; cd /mnt/alloc/builds; chmod +x $NOMAD_ALLOC_DIR{}; exit 0;",
script_name
),
|_| {},
Expand All @@ -389,7 +386,7 @@ pub async fn run(
config.port,
&running_alloc.id,
job_name,
&["/bin/bash", &format!("${{NOMAD_ALLOC_DIR}}{}", script_name)],
&["/bin/bash", &format!("$NOMAD_ALLOC_DIR{}", script_name)],
)
.await
.map_err(|e| RunError::StartingExecSession {
Expand Down

0 comments on commit 556d034

Please sign in to comment.