360ae409a56fca42036b194b06991178ae0857ef
[external/dbus.git] / debian / dbus.postinst
1 #!/bin/sh
2 if [ "${USER}" = "root" ]
3 then
4         # Change file owner
5         # 1. libraries
6         # 2. executables
7         chown root:root /usr/bin/dbus-uuidgen
8         chown root:root /usr/bin/dbus-send
9         chown root:root /usr/bin/dbus-monitor
10         chown root:root /usr/bin/dbus-launch
11         chown root:root /usr/bin/dbus-cleanup-sockets
12         chown root:root /usr/bin/dbus-daemon
13         chown root:root /usr/libexec/dbus-daemon-launch-helper
14         chown root:root /etc/rc.d/rc3.d/S30dbus-daemon_run
15         # 3. configurations
16         chown root:root /usr/etc/dbus-1/system.conf
17         chown root:root /usr/etc/dbus-1/session.conf
18 fi
19 # Change file permissions
20 # 1. libraries
21 # 2. executables
22 chmod 755 /usr/bin/dbus-uuidgen
23 chmod 755 /usr/bin/dbus-send
24 chmod 755 /usr/bin/dbus-monitor
25 chmod 755 /usr/bin/dbus-launch
26 chmod 755 /usr/bin/dbus-cleanup-sockets
27 chmod 755 /usr/bin/dbus-daemon
28 chmod 755 /usr/libexec/dbus-daemon-launch-helper
29 chmod 755 /etc/rc.d/rc3.d/S30dbus-daemon_run
30 # 3. configurations
31 chmod 644 /usr/etc/dbus-1/system.conf
32 chmod 644 /usr/etc/dbus-1/session.conf