uce/scripts/deb/prerm

11 lines
210 B
Bash

#!/bin/sh
set -e
if [ "$1" = "remove" ] || [ "$1" = "deconfigure" ]; then
if command -v systemctl >/dev/null 2>&1; then
systemctl disable --now uce.service uce.socket >/dev/null 2>&1 || true
fi
fi
exit 0