Skip to content
Snippets Groups Projects
Commit a32e72ee authored by Guido Günther's avatar Guido Günther
Browse files

Clean up capabilities and possibly empty dirs

Closes: #761131
parent 9e3d6959
No related branches found
No related tags found
No related merge requests found
......@@ -33,7 +33,18 @@ case "$1" in
delgroup libvirt-qemu || true
fi
rm -rf /var/log/libvirt
# Clean up logs and cached capabilities
rm -rf /var/log/libvirt \
/var/cache/libvirt/qemu/capabilities
# Clean up created dirs if emtpy, they contain
# precious data otherwise
rmdir --ignore-fail-on-non-empty \
/var/lib/libvirt/qemu/save \
/var/lib/libvirt/qemu/snapshot \
/var/lib/libvirt/qemu/dump \
/var/lib/libvirt/qemu \
/var/cache/libvirt/qemu
;;
remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
;;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment