Skip to content

Commit

Permalink
Packaging: Dont remove ancestors on deb removal
Browse files Browse the repository at this point in the history
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
  • Loading branch information
spinscale committed Jul 30, 2014
1 parent f9f8459 commit 2077d4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/deb/control/postrm
Expand Up @@ -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)
Expand Down

0 comments on commit 2077d4b

Please sign in to comment.