simplify env var name

This commit is contained in:
Michiel Borkent 2020-05-09 19:31:25 +02:00
parent 7fea4149c9
commit f5652b9749
2 changed files with 2 additions and 2 deletions

View file

@ -107,7 +107,7 @@
pb (ProcessBuilder. ^java.util.List pod-spec) pb (ProcessBuilder. ^java.util.List pod-spec)
_ (.redirectError pb java.lang.ProcessBuilder$Redirect/INHERIT) _ (.redirectError pb java.lang.ProcessBuilder$Redirect/INHERIT)
_ (doto (.environment pb) _ (doto (.environment pb)
(.put "RUN_AS_BABASHKA_POD" "true")) (.put "BABASHKA_POD" "true"))
p (.start pb) p (.start pb)
stdin (.getOutputStream p) stdin (.getOutputStream p)
stdout (.getInputStream p) stdout (.getInputStream p)

View file

@ -112,5 +112,5 @@
:shutdown (System/exit 0)))))))) :shutdown (System/exit 0))))))))
(defn -main [& args] (defn -main [& args]
(when (= "true" (System/getenv "RUN_AS_BABASHKA_POD")) (when (= "true" (System/getenv "BABASHKA_POD"))
(run-pod (set args)))) (run-pod (set args))))