From f9d72be980d5857fbe059ad346c1e9a1ef464db7 Mon Sep 17 00:00:00 2001 From: Karol Lewandowski Date: Thu, 12 Jul 2012 17:33:56 +0200 Subject: [PATCH] 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. --- packaging/contacts-service.spec | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.7.4