Fix cargo deb missing #DEBHELPER# variable
This commit is contained in:
parent
7738c8b366
commit
1a1501a48d
3 changed files with 12 additions and 3 deletions
5
debian/postinst
vendored
5
debian/postinst
vendored
|
@ -1,5 +1,8 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
#DEBHELPER#
|
||||||
|
|
||||||
|
# Also enable User Service
|
||||||
|
|
||||||
# Automatically added by cargo-deb
|
# Automatically added by cargo-deb
|
||||||
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then
|
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then
|
||||||
if deb-systemd-helper --user debian-installed cloudflare-dns-updater.service; then
|
if deb-systemd-helper --user debian-installed cloudflare-dns-updater.service; then
|
||||||
|
|
5
debian/postrm
vendored
5
debian/postrm
vendored
|
@ -1,5 +1,8 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
#DEBHELPER#
|
||||||
|
|
||||||
|
# Also enable User Service
|
||||||
|
|
||||||
# Automatically added by cargo-deb
|
# Automatically added by cargo-deb
|
||||||
if [ -d /run/systemd/system ]; then
|
if [ -d /run/systemd/system ]; then
|
||||||
USER="$(who | head -1 | awk '{print $1;}')"
|
USER="$(who | head -1 | awk '{print $1;}')"
|
||||||
|
|
5
debian/prerm
vendored
5
debian/prerm
vendored
|
@ -1,5 +1,8 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
#DEBHELPER#
|
||||||
|
|
||||||
|
# Also enable User Service
|
||||||
|
|
||||||
# Automatically added by cargo-deb
|
# Automatically added by cargo-deb
|
||||||
if [ -d /run/systemd/system ] && [ "$1" = remove ]; then
|
if [ -d /run/systemd/system ] && [ "$1" = remove ]; then
|
||||||
USER="$(who | head -1 | awk '{print $1;}')"
|
USER="$(who | head -1 | awk '{print $1;}')"
|
||||||
|
|
Loading…
Reference in a new issue