debian/dbus-daemon.postinst
raw| 1 | #!/bin/sh |
| 2 | |
| 3 | set -e |
| 4 | |
| 5 | if [ "$1" = configure ]; then |
| 6 | # This is idempotent, so it's OK to do every time. The system bus' init |
| 7 | # script does this anyway, but you also have to do this before a session |
| 8 | # bus will work on non-systemd systems, so we do this here for the |
| 9 | # benefit of people starting a temporary session bus in a chroot. |
| 10 | mkdir -p /var/lib/dbus |
| 11 | dbus-uuidgen --ensure |
| 12 | fi |
| 13 | |
| 14 | #DEBHELPER# |
| 15 | |
| 16 | exit 0 |