Skip to content

Commit

Permalink
Set umask when installing plugins
Browse files Browse the repository at this point in the history
Otherwise system defaults could make the plugin unaccessible for the grafana user.

Fixes #361
  • Loading branch information
dhoffend authored and Nemental committed May 2, 2024
1 parent 1e57072 commit b5577e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/modules/grafana_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ def grafana_plugin(module, params):
else:
cmd = "{0} uninstall {1}".format(grafana_cli, params["name"])

rc, stdout, stderr = module.run_command(cmd)
rc, stdout, stderr = module.run_command(cmd, umask=0o0022)
if rc == 0:
stdout_lines = stdout.split("\n")
for line in stdout_lines:
Expand Down

0 comments on commit b5577e4

Please sign in to comment.