Skip to content

Commit

Permalink
#317 Fix path of cacert
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed Nov 17, 2020
1 parent 9177e28 commit 6773849
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/org/thp/cortex/services/ProcessJobRunnerSrv.scala
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class ProcessJobRunnerSrv @Inject() (implicit val system: ActorSystem) {
val output = StringBuilder.newBuilder
logger.info(s"Execute $command in $baseDirectory, timeout is ${timeout.fold("none")(_.toString)}")
val cacertsFile = jobDirectory.resolve("input").resolve("cacerts")
val env = if (Files.exists(cacertsFile)) Seq("REQUESTS_CA_BUNDLE" -> "/job/input/cacerts") else Nil
val env = if (Files.exists(cacertsFile)) Seq("REQUESTS_CA_BUNDLE" -> cacertsFile.toString) else Nil
val process = Process(Seq(command, jobDirectory.toString), baseDirectory.toFile, env: _*)
.run(ProcessLogger { s =>
logger.info(s" Job ${job.id}: $s")
Expand Down

0 comments on commit 6773849

Please sign in to comment.