#!/bin/sh
#
# Runs before the package is removed. Crucial for stopping the application so files aren't deleted while in use.

set -e

case "$1" in
    remove|upgrade|failed-upgrade|abort-install|abort-upgrade)
        # Stop the service if it is running
#        if systemctl is-active --quiet CuttingBoard.service 2>/dev/null; then
#            systemctl stop CuttingBoard.service
#        fi
        ;;
esac

exit 0