#!/bin/bash
##############
# LMS prerm hook
##############

case "$1" in
    remove|upgrade|deconfigure)
        systemctl stop -q lms
        systemctl disable -q lms
    ;;

    failed-upgrade)
    ;;

    *)
        echo "prerm called with unknown argument \`$1'" >&2
        exit 1
    ;;
esac

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

#DEBHELPER#

exit 0
