diff --git a/src/deb/control/postrm b/src/deb/control/postrm index 776528a3af4..fa0b29eef1f 100755 --- a/src/deb/control/postrm +++ b/src/deb/control/postrm @@ -3,8 +3,8 @@ set -e case "$1" in remove) - # Remove logs and data - rm -rf /var/log/elasticsearch /var/lib/elasticsearch + # Remove logs but not the data + rm -rf /var/log/elasticsearch ;; purge)