remove empty data dir

This commit is contained in:
Peter 2012-02-08 12:25:45 +01:00
parent cf2a726081
commit 3701f748d4
1 changed files with 4 additions and 1 deletions

View File

@ -3,8 +3,11 @@ set -e
case "$1" in
remove)
# Remove logs but not the data
# Remove logs
rm -rf /var/log/elasticsearch
# remove **only** empty data dir
rmdir -p --ignore-fail-on-non-empty /var/lib/elasticsearch
;;
purge)