Fix wrong ownership for /run/dbus
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
name: dbus
|
name: dbus
|
||||||
description: Freedesktop.org message bus system
|
description: Freedesktop.org message bus system
|
||||||
version: 1.16.2
|
version: 1.16.2
|
||||||
|
revision: 2
|
||||||
url: https://www.freedesktop.org/wiki/Software/dbus
|
url: https://www.freedesktop.org/wiki/Software/dbus
|
||||||
license: AFL2.1 or GPL2-or-later
|
license: AFL2.1 or GPL2-or-later
|
||||||
architecture: any
|
architecture: any
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
name: dbus
|
name: dbus
|
||||||
description: DBus message system bus
|
description: DBus message system bus
|
||||||
type: background
|
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
|
exit_method: kill
|
||||||
restart: true
|
restart: true
|
||||||
|
|||||||
@@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
[ -d /run/dbus ] || install -d /run/dbus
|
||||||
|
|
||||||
|
exec /usr/bin/dbus-daemon --system --nofork
|
||||||
@@ -49,10 +49,11 @@ package() {
|
|||||||
ln -sfv /var/lib/dbus/machine-id "$BPM_OUTPUT"/etc/machine-id
|
ln -sfv /var/lib/dbus/machine-id "$BPM_OUTPUT"/etc/machine-id
|
||||||
|
|
||||||
# Install dbus service
|
# 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 -Dm644 "$BPM_WORKDIR"/dbus.esv "$BPM_OUTPUT"/etc/esvm/services/dbus.esv
|
||||||
|
|
||||||
# Install dbus BPM hook
|
# 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 -Dm644 "$BPM_WORKDIR"/dbus-reload.bpmhook "$BPM_OUTPUT"/var/lib/bpm/hooks/dbus-reload.bpmhook
|
||||||
|
|
||||||
# Install package license
|
# Install package license
|
||||||
|
|||||||
Reference in New Issue
Block a user