[TEST] Ensure file permission for /etc/sudoers.d/elasticsearch_vars
Ubuntu 12.04 checks the file permission for /etc/sudoers.d/elasticsearch_vars is mode 0440. This commit adds a `chmod` before the file is used by the `sudo` command.
This commit is contained in:
parent
6db683a4bd
commit
6cafe688b3
|
@ -290,5 +290,6 @@ Defaults env_keep += "BATS_UTILS"
|
|||
Defaults env_keep += "BATS_TESTS"
|
||||
Defaults env_keep += "BATS_ARCHIVES"
|
||||
SUDOERS_VARS
|
||||
chmod 0440 /etc/sudoers.d/elasticsearch_vars
|
||||
SHELL
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue