diff options
Diffstat (limited to 'debian_NOT_USED/libcontacts-service.postinst.in')
-rwxr-xr-x | debian_NOT_USED/libcontacts-service.postinst.in | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/debian_NOT_USED/libcontacts-service.postinst.in b/debian_NOT_USED/libcontacts-service.postinst.in new file mode 100755 index 0000000..5f04744 --- /dev/null +++ b/debian_NOT_USED/libcontacts-service.postinst.in @@ -0,0 +1,25 @@ +#!/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 + #db_sns + chown :6016 /opt/data/contacts-svc/.CONTACTS_SVC_RESTRICTION_CHECK + vconftool set -t int db/contacts-svc/name_sorting_order 0 -g 6005 + vconftool set -t int db/contacts-svc/name_display_order 0 -g 6005 +else + vconftool set -t int db/contacts-svc/name_sorting_order 0 + vconftool set -t int db/contacts-svc/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 660 /opt/data/contacts-svc/.CONTACTS_SVC_RESTRICTION_CHECK +chmod 770 -R /opt/data/contacts-svc/img + +echo "Done" |