1
0
Эх сурвалжийг харах

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 жил өмнө
parent
commit
2077d4be48

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