Skip to content

Commit 61750a0

Browse files
committed
debian/rules: Disable (and mask) the authd-example-broker service by default
1 parent c6a45b0 commit 61750a0

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/sh
2+
set -e
3+
4+
#DEBHELPER#
5+
6+
# Mask the service by default, unless it was previuously enabled.
7+
if [ -z "${DPKG_ROOT:-}" ] && [ -d /run/systemd/system ] && [ "$1" = configure ]; then
8+
if [ -z "$2" ] || ! deb-systemd-helper was‐enabled; then
9+
deb-systemd-helper mask 'authd-example-broker.service'
10+
fi
11+
fi

debian/rules

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,3 +84,10 @@ override_dh_auto_install:
8484
dh_auto_install --destdir=debian/tmp -- --no-source
8585

8686
/usr/share/cargo/bin/dh-cargo-built-using authd
87+
88+
override_dh_installsystemd:
89+
dh_installsystemd -pauthd
90+
dh_installsystemd -pauthd-example-broker \
91+
--no-enable \
92+
--no-start \
93+
$(NULL)

0 commit comments

Comments
 (0)