Actions
Bug #38199
openOverriding environment variables doesn't work when running foreman-rake
Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Description
Overriding environment variables doesn't work when running foreman-rake
This commit https://github.com/theforeman/foreman/commit/3636aecb06c6857c136b9094f41d94c70b3d0b8e added option '-' (-l, --login)
for runuser which clears all the environment variables before run command
Without option '-' (-l, --login)
# FOREMAN_APIPIE_LANGS=en foreman-rake apipie:cache
2025-02-10 11:22:32 +0000 | Started
2025-02-10 11:22:32 +0000 | Documents loaded...
2025-02-10 11:22:32 +0000 | Processing docs for
2025-02-10 11:22:42 +0000 | Processing docs for en
2025-02-10 11:22:51 +0000 | Finished
With option '-' (-l, --login)
# FOREMAN_APIPIE_LANGS=en foreman-rake apipie:cache
2025-02-10 11:23:20 +0000 | Started
2025-02-10 11:23:20 +0000 | Documents loaded...
2025-02-10 11:23:20 +0000 | Processing docs for
2025-02-10 11:23:29 +0000 | Processing docs for ca
2025-02-10 11:23:38 +0000 | Processing docs for cs_CZ
2025-02-10 11:23:47 +0000 | Processing docs for de
2025-02-10 11:23:57 +0000 | Processing docs for en
2025-02-10 11:24:06 +0000 | Processing docs for en_GB
2025-02-10 11:24:16 +0000 | Processing docs for es
2025-02-10 11:24:25 +0000 | Processing docs for fr
2025-02-10 11:24:35 +0000 | Processing docs for gl
2025-02-10 11:24:44 +0000 | Processing docs for it
2025-02-10 11:24:54 +0000 | Processing docs for ja
2025-02-10 11:25:03 +0000 | Processing docs for ko
2025-02-10 11:25:13 +0000 | Processing docs for nl_NL
2025-02-10 11:25:23 +0000 | Processing docs for pl
2025-02-10 11:25:32 +0000 | Processing docs for pt_BR
2025-02-10 11:25:42 +0000 | Processing docs for ru
2025-02-10 11:25:52 +0000 | Processing docs for sv_SE
2025-02-10 11:26:01 +0000 | Processing docs for zh_CN
2025-02-10 11:26:11 +0000 | Processing docs for zh_TW
2025-02-10 11:26:21 +0000 | Finished
No data to display
Actions