Packaging: Dont remove ancestors on deb removal

The used -p option could result in accidentally deleting more directories
than /var/lib/elasticsearch - so this option was removed

Note: This only happens if the directories are empty, but still isnt needed.

Relates #5770
This commit is contained in:
Alexander Reelsen 2014-07-30 15:01:06 +02:00
parent f9f8459c79
commit 2077d4be48
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ case "$1" in
rm -rf /var/log/elasticsearch
# remove **only** empty data dir
rmdir -p --ignore-fail-on-non-empty /var/lib/elasticsearch
rmdir --ignore-fail-on-non-empty /var/lib/elasticsearch
;;
purge)