summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarol Lewandowski <k.lewandowsk@samsung.com>2012-07-12 17:33:56 +0200
committerKarol Lewandowski <k.lewandowsk@samsung.com>2012-07-12 17:33:56 +0200
commitf9d72be980d5857fbe059ad346c1e9a1ef464db7 (patch)
tree0f3460bc8f58ed8ab419dd2a8aae26d008995c24
parent8478ed7ff6dedd58fba85743a971825df2e3d817 (diff)
downloadcontacts-service-f9d72be980d5857fbe059ad346c1e9a1ef464db7.tar.gz
contacts-service-f9d72be980d5857fbe059ad346c1e9a1ef464db7.tar.bz2
contacts-service-f9d72be980d5857fbe059ad346c1e9a1ef464db7.zip
Make it possible for user app to create files under contact's data directory.
This is required for contact-svc-helper to bind to IPC socket when run from systemd user-session.
-rw-r--r--packaging/contacts-service.spec2
1 files changed, 2 insertions, 0 deletions
diff --git a/packaging/contacts-service.spec b/packaging/contacts-service.spec
index a104d00..670338a 100644
--- a/packaging/contacts-service.spec
+++ b/packaging/contacts-service.spec
@@ -62,6 +62,7 @@ ln -s ../contacts-server.service %{buildroot}%{_libdir}/systemd/user/tizen-middl
# from contacts-service-bin.postinst
contacts-svc-helper schema
+chown :6005 /opt/data/contacts-svc
chown :6005 /opt/dbspace/.contacts-svc.db
chown :6005 /opt/dbspace/.contacts-svc.db-journal
chown :6005 -R /opt/data/contacts-svc/img
@@ -69,6 +70,7 @@ chown :6005 /opt/data/contacts-svc/.CONTACTS_SVC_*
chmod 660 /opt/dbspace/.contacts-svc.db
chmod 660 /opt/dbspace/.contacts-svc.db-journal
+chmod 775 /opt/data/contacts-svc
chmod 770 -R /opt/data/contacts-svc/img/
chmod 660 /opt/data/contacts-svc/.CONTACTS_SVC_*
vconftool set -t int db/service/contacts/default_lang 1