#!/bin/bash
set -e
case "$1" in
remove|upgrade|deconfigure)
# Stop and disable the service
if systemctl is-active --quiet skyview-adsb.service; then
systemctl stop skyview-adsb.service
fi
if systemctl is-enabled --quiet skyview-adsb.service; then
systemctl disable skyview-adsb.service
;;
esac
exit 0