浏览代码

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
Alexander Reelsen 11 年之前
父节点
当前提交
2077d4be48
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/deb/control/postrm

+ 1 - 1
src/deb/control/postrm

@@ -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)