Closed nick-pap closed 6 years ago
Hello @dn0! As the bug reporter, can you please review?
Btw. What is the motivation behind this? I understand that before starting a fresh node it is needed. But for restarts and upgrades I don't see the benefit.
Maybe we could go back to chown -R
, but only when started for the first time, e.g.:
if [ ! -d /data/data/nodes ]; then
chown -R elasticsearch:elasticsearch /data
fi
And the ownership of the /elasticsearch
($BASE
) folder and subfolder could be handled in the Dockerfile during build time.
@dn0 why don't you own a PR that addresses all of this properly? I'd like to include it as part of 6.4.2.
@pires @nick-pap https://github.com/pires/docker-elasticsearch/pull/75
This fixes the find command to properly scan only for files not having elasticsearch user in specific folders