aboutsummaryrefslogtreecommitdiff
path: root/dbus/postinstall
diff options
context:
space:
mode:
authorWoodpecker CI <emmett1.2miligrams@protonmail.com>2025-06-03 14:32:36 +0000
committerWoodpecker CI <emmett1.2miligrams@protonmail.com>2025-06-03 14:32:36 +0000
commit93a354611e38a6949add5c2e5ccc93ef79b9755f (patch)
tree7fee41752b1047d74c59f8ee046cd62735e7e934 /dbus/postinstall
parent35912580b66e9439f91ea441938828ad8aa33b0d (diff)
downloadalicelinux-93a354611e38a6949add5c2e5ccc93ef79b9755f.tar.gz
alicelinux-93a354611e38a6949add5c2e5ccc93ef79b9755f.zip
Woodpecker CI 5171f1fdd74e7137c305450dd69a29fa5be4143f [SKIP CI]
Diffstat (limited to 'dbus/postinstall')
-rwxr-xr-xdbus/postinstall9
1 files changed, 9 insertions, 0 deletions
diff --git a/dbus/postinstall b/dbus/postinstall
new file mode 100755
index 00000000..970b2e18
--- /dev/null
+++ b/dbus/postinstall
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+getent group messagebus >/dev/null || addgroup -S messagebus 2>/dev/null
+getent passwd messagebus >/dev/null || adduser -S -D -H -h /dev/null -s /sbin/nologin -G messagebus -g messagebus messagebus 2>/dev/null
+
+chown root:messagebus /usr/libexec/dbus-daemon-launch-helper
+chmod 4750 /usr/libexec/dbus-daemon-launch-helper
+
+dbus-uuidgen --ensure