<p dir="auto">At the moment the scripts directory is hard coded to <code class="notranslate">scriptsDirectory = new File(env.configFile(), "scripts");</code> but it would be handy to make this configurable.<br>
Main reason is that with the Puppet module we allow multiple instances, and it would be handy that all instances on a single node can share the same directory where the scripts are located.</p>
<p dir="auto">Since dynamic scripting is off by default since elasticsearch &gt;=1.2 (which is good!), we have to move all our scripts to files in the <code class="notranslate">config/scripts</code> folder. It would be awesome to have an option to change that folder in the config to make it easier for using different folders in different environments. Best would be to set it through ENV variables <code class="notranslate">ELASTICSEARCH_SCRIPTS_FOLDER</code> and through the config file</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="path:
  logs: /var/log/elasticsearch
  data: /var/data/elasticsearch
  scripts: /my/custom/script/folder"><pre class="notranslate"><code class="notranslate">path:
  logs: /var/log/elasticsearch
  data: /var/data/elasticsearch
  scripts: /my/custom/script/folder
</code></pre></div>
<p dir="auto">thanks!</p>