remove empty data dir
This commit is contained in:
parent
cf2a726081
commit
3701f748d4
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue