Skip to content

Commit 1842c94

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

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

packages/common/postinst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,6 @@ 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.service
62+
deb-systemd-helper enable sudobot
6363
fi
6464
fi

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.service
5-
deb-systemd-helper disable sudobot.service
4+
deb-systemd-helper stop sudobot
5+
deb-systemd-helper disable sudobot
66
fi
77

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

packages/debian/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ $(PACKAGE):
3838
chmod 755 "$(BUILD_DIR)/usr/share/sudobot"
3939

4040
cp "$(COMMON_DIR)/systemd-sudobot.service" "$(SYSTEMD_SERVICE)"
41-
chmod 640 "$(SYSTEMD_SERVICE)"
41+
chmod 644 "$(SYSTEMD_SERVICE)"
4242

4343
mv "$(BUILD_DIR)/DEBIAN/control.in" "$(BUILD_DIR)/DEBIAN/control"
4444
sed -i "s/@VERSION@/$(VERSION)/g" "$(BUILD_DIR)/DEBIAN/control"

0 commit comments

Comments
 (0)