Skip to content

Commit 4f7ca7f

Browse files
build: debian package build fix
Signed-off-by: Ar Rakin <[email protected]>
1 parent 1842c94 commit 4f7ca7f

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

packages/common/postinst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ su sudobot -c "PATH=\"$PATH\" BUN_INSTALL=/var/sudobot $pm install" -s /bin/sh |
5959
# Enable systemd service
6060
if [ -f /lib/systemd/system/sudobot.service ]; then
6161
if command -v deb-systemd-helper >/dev/null 2>&1; then
62-
deb-systemd-helper enable sudobot
62+
deb-systemd-helper enable sudobot.service
6363
fi
64-
fi
64+
fi
65+

packages/common/prerm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/bin/sh
22

33
if command -v deb-systemd-helper >/dev/null 2>&1; then
4-
deb-systemd-helper stop sudobot
5-
deb-systemd-helper disable sudobot
4+
deb-systemd-helper stop sudobot.service
5+
deb-systemd-helper disable sudobot.service
66
fi
77

88
if [ -d /var/sudobot ] && [ -n "$(ls -A /var/sudobot)" ]; then

0 commit comments

Comments
 (0)