post_install() {
    if [ $(getent group docker) ]; then
        chown root:docker /usr/lib/kathara/kathara
    fi
    chmod g+s /usr/lib/kathara/kathara
}

pre_remove() {
    /usr/lib/kathara/kathara wipe -f -a 2> /dev/null || true
}
