Debian Codegraph @

tools/debian/cockpit-storage.postinst

raw
1 #!/bin/sh
2 set -e
3
4 #DEBHELPER#
5
6 # version 332 moved the btrfs temp mounts db to /run
7 if [ "$1" = "configure" ] && dpkg --compare-versions "$2" lt-nl 322 && [ -d /var/lib/cockpit/btrfs ]; then
8 rm -rf --one-file-system /var/lib/cockpit/btrfs || true
9 fi