remove remaining references to scripts directory (#24771)
The packaging scripts still referenced the scripts directory which is now removed.
This commit is contained in:
parent
905eb422f6
commit
779cf3d468
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue