remove remaining references to scripts directory (#24771)

The packaging scripts still referenced the scripts directory which is now removed.
This commit is contained in:
Colin Goodheart-Smithe 2017-05-18 11:48:15 +01:00 committed by GitHub
parent 905eb422f6
commit 779cf3d468
2 changed files with 0 additions and 7 deletions

View File

@ -110,7 +110,6 @@ chown -R elasticsearch:elasticsearch /var/lib/elasticsearch
chown -R elasticsearch:elasticsearch /var/log/elasticsearch
chown -R root:elasticsearch /etc/elasticsearch
chmod 0750 /etc/elasticsearch
chmod 0750 /etc/elasticsearch/scripts
if [ -f /etc/sysconfig/elasticsearch ]; then
chmod 0660 /etc/sysconfig/elasticsearch

View File

@ -79,12 +79,6 @@ if [ "$REMOVE_SERVICE" = "true" ]; then
if command -v update-rc.d >/dev/null; then
update-rc.d elasticsearch remove >/dev/null || true
fi
SCRIPTS_DIR="/etc/elasticsearch/scripts"
# delete the scripts directory if and only if empty
if [ -d "$SCRIPTS_DIR" ]; then
rmdir --ignore-fail-on-non-empty "$SCRIPTS_DIR"
fi
fi