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:
parent
f9f8459c79
commit
2077d4be48
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue