2023-12-29 00:18:36 +00:00
|
|
|
#!/bin/sh
|
2023-12-29 00:26:09 +00:00
|
|
|
#DEBHELPER#
|
|
|
|
|
|
|
|
# Also enable User Service
|
|
|
|
|
2023-12-29 00:18:36 +00:00
|
|
|
# Automatically added by cargo-deb
|
|
|
|
if [ -d /run/systemd/system ] && [ "$1" = remove ]; then
|
|
|
|
USER="$(who | head -1 | awk '{print $1;}')"
|
|
|
|
runuser -l $USER -c "XDG_RUNTIME_DIR=/run/user/$(id -u $USER) deb-systemd-invoke --user stop cloudflare-dns-updater.service >/dev/null || true"
|
|
|
|
fi
|
|
|
|
# End automatically added section
|