summaryrefslogtreecommitdiff
path: root/debian/contacts-service-bin.postinst.in
blob: 52e46f0c46014b6fffceb444dba7a96c6b005ece (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/sh

if [ ! -d /opt/dbspace ]
then
	mkdir -p /opt/dbspace
fi

contacts-svc-helper schema

if [ "$USER" = "root" ]
then
# Change file owner
   chown :6005 /opt/dbspace/.contacts-svc.db
   chown :6005 /opt/dbspace/.contacts-svc.db-journal

   chown root:root @PREFIX@/bin/contacts-svc-helper*
   chown root:root /etc/rc.d/init.d/contacts-svc-helper.sh
fi

# Change file permissions
# chmod 755 /usr/bin/contacts-svc-helper

chmod 660 /opt/dbspace/.contacts-svc.db
chmod 660 /opt/dbspace/.contacts-svc.db-journal

chmod 755 /etc/rc.d/init.d/contacts-svc-helper.sh

vconftool set -t int db/service/contacts/default_lang 1