Fix wrong ownership for /run/dbus

This commit is contained in:
2025-08-03 18:43:45 +03:00
parent 30a209248e
commit 1fe99a5328
4 changed files with 9 additions and 2 deletions
+1
View File
@@ -1,6 +1,7 @@
name: dbus
description: Freedesktop.org message bus system
version: 1.16.2
revision: 2
url: https://www.freedesktop.org/wiki/Software/dbus
license: AFL2.1 or GPL2-or-later
architecture: any
+1 -1
View File
@@ -1,6 +1,6 @@
name: dbus
description: DBus message system bus
type: background
start_cmd: bash -c 'install -m755 -g 81 -o 81 -d /run/dbus; exec dbus-daemon --system --nofork --nopidfile'
start_cmd: /etc/esvm/scripts/dbus.sh
exit_method: kill
restart: true
+5
View File
@@ -0,0 +1,5 @@
#!/bin/sh
[ -d /run/dbus ] || install -d /run/dbus
exec /usr/bin/dbus-daemon --system --nofork
+2 -1
View File
@@ -49,10 +49,11 @@ package() {
ln -sfv /var/lib/dbus/machine-id "$BPM_OUTPUT"/etc/machine-id
# Install dbus service
install -Dm755 "$BPM_WORKDIR"/dbus-reload.sh "$BPM_OUTPUT"/usr/sbin/dbus-reload
install -Dm755 "$BPM_WORKDIR"/dbus.sh "$BPM_OUTPUT"/etc/esvm/scripts/dbus.sh
install -Dm644 "$BPM_WORKDIR"/dbus.esv "$BPM_OUTPUT"/etc/esvm/services/dbus.esv
# Install dbus BPM hook
install -Dm755 "$BPM_WORKDIR"/dbus-reload.sh "$BPM_OUTPUT"/usr/sbin/dbus-reload
install -Dm644 "$BPM_WORKDIR"/dbus-reload.bpmhook "$BPM_OUTPUT"/var/lib/bpm/hooks/dbus-reload.bpmhook
# Install package license