Remove deprecated scripts for User Service File
Some checks failed
Run Tests on Code / run-tests (push) Has been cancelled
Some checks failed
Run Tests on Code / run-tests (push) Has been cancelled
This commit is contained in:
parent
46bf5dc50d
commit
bbee00c9f9
1 changed files with 0 additions and 27 deletions
27
debian/postrm
vendored
27
debian/postrm
vendored
|
@ -1,27 +0,0 @@
|
|||
#!/bin/sh
|
||||
#DEBHELPER#
|
||||
|
||||
# Also enable User Service
|
||||
|
||||
# Automatically added by cargo-deb
|
||||
if [ -d /run/systemd/system ]; then
|
||||
USER="$(who | head -1 | awk '{print $1;}')"
|
||||
runuser -l $USER -c "XDG_RUNTIME_DIR=/run/user/$(id -u $USER) systemctl --user daemon-reload >/dev/null || true"
|
||||
fi
|
||||
# End automatically added section
|
||||
# Automatically added by cargo-deb
|
||||
if [ "$1" = "remove" ]; then
|
||||
if [ -x "/usr/bin/deb-systemd-helper" ]; then
|
||||
USER="$(who | head -1 | awk '{print $1;}')"
|
||||
runuser -l $USER -c "XDG_RUNTIME_DIR=/run/user/$(id -u $USER) deb-systemd-helper --user mask cloudflare-dns-updater.service >/dev/null || true"
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "$1" = "purge" ]; then
|
||||
if [ -x "/usr/bin/deb-systemd-helper" ]; then
|
||||
USER="$(who | head -1 | awk '{print $1;}')"
|
||||
runuser -l $USER -c "XDG_RUNTIME_DIR=/run/user/$(id -u $USER) deb-systemd-helper --user purge cloudflare-dns-updater.service >/dev/null || true"
|
||||
runuser -l $USER -c "XDG_RUNTIME_DIR=/run/user/$(id -u $USER) deb-systemd-helper --user unmask cloudflare-dns-updater.service >/dev/null || true"
|
||||
fi
|
||||
fi
|
||||
# End automatically added section
|
Loading…
Reference in a new issue