simplify env var name
This commit is contained in:
parent
7fea4149c9
commit
f5652b9749
2 changed files with 2 additions and 2 deletions
|
|
@ -107,7 +107,7 @@
|
|||
pb (ProcessBuilder. ^java.util.List pod-spec)
|
||||
_ (.redirectError pb java.lang.ProcessBuilder$Redirect/INHERIT)
|
||||
_ (doto (.environment pb)
|
||||
(.put "RUN_AS_BABASHKA_POD" "true"))
|
||||
(.put "BABASHKA_POD" "true"))
|
||||
p (.start pb)
|
||||
stdin (.getOutputStream p)
|
||||
stdout (.getInputStream p)
|
||||
|
|
|
|||
|
|
@ -112,5 +112,5 @@
|
|||
:shutdown (System/exit 0))))))))
|
||||
|
||||
(defn -main [& args]
|
||||
(when (= "true" (System/getenv "RUN_AS_BABASHKA_POD"))
|
||||
(when (= "true" (System/getenv "BABASHKA_POD"))
|
||||
(run-pod (set args))))
|
||||
|
|
|
|||
Loading…
Reference in a new issue