evcc-io/packaging/scripts/preremove.sh
2024-12-09 20:22:01 +01:00

6 lines
136 B
Bash

#!/bin/sh
set -e
if [ -d /run/systemd/system ] && [ "$1" = remove ]; then
deb-systemd-invoke stop evcc.service > /dev/null || true
fi