-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: allow getting API token from environment
Allow the API token to be obtained from the environment variable SM_AGENT_API_TOKEN. If it's passed on the command line, that value takes precedence. For backwards compatibility, in case the user decides to NOT replace the existing configuration files (in Debian these are config files, and the user has the option to NOT replace them during an upgrade if they have edited them, and because of the way we have set this up, they *have* edited them). In the shipped systemd service file, replace passing the token on the command line in favor of passing it on the environment. Signed-off-by: Marcelo E. Magallon <marcelo.magallon@grafana.com>
- Loading branch information
Showing
3 changed files
with
18 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters