blob: d76c3a6be532e8512663239321745c911bc041d7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/bin/sh
if [ "$USER" = "root" ]
then
# Change file owner
chown root:root @PREFIX@/lib/libcontacts-service.so.*
#db_contact
chown :6005 -R /opt/data/contacts-svc/img
chown :6005 /opt/data/contacts-svc/.CONTACTS_SVC_*_CHANGED
vconftool set -t int db/service/contacts/name_sorting_order 0 -g 6005
vconftool set -t int db/service/contacts/name_display_order 0 -g 6005
else
vconftool set -t int db/service/contacts/name_sorting_order 0
vconftool set -t int db/service/contacts/name_display_order 0
fi
# Change file permissions
# chmod 644 /usr/lib/libcontacts-service.so
chmod 660 /opt/data/contacts-svc/.CONTACTS_SVC_*_CHANGED
chmod 770 -R /opt/data/contacts-svc/img
echo "Done"
|