summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSung-jae Park <nicesj.park@samsung.com>2013-02-25 14:10:27 (GMT)
committerSung-jae Park <nicesj.park@samsung.com>2013-02-25 14:10:27 (GMT)
commitf31a3ff09fbbdca2822a915edc8d625c699bf735 (patch)
treee34d777094e1ffd4f753c2cff2fa5853fd22369e
parent51b09a723272f59c4ed4243ad10e6b43faa90da9 (diff)
downloaddata-provider-master-f31a3ff09fbbdca2822a915edc8d625c699bf735.zip
data-provider-master-f31a3ff09fbbdca2822a915edc8d625c699bf735.tar.gz
data-provider-master-f31a3ff09fbbdca2822a915edc8d625c699bf735.tar.bz2
Set the UID/GID from the post script.
While installing this package, build system doesn't guarantees the "app" So we have to use the digit instead of its string. Forcely set the UID/GID even if it doesn't exists in the passwd file. FOR TRATS build environment. Change-Id: Ica56257a6da52b2e1c1bfba62700ded593cfc6ab
-rw-r--r--packaging/org.tizen.data-provider-master.spec24
1 files changed, 18 insertions, 6 deletions
diff --git a/packaging/org.tizen.data-provider-master.spec b/packaging/org.tizen.data-provider-master.spec
index cf75499..322e78f 100644
--- a/packaging/org.tizen.data-provider-master.spec
+++ b/packaging/org.tizen.data-provider-master.spec
@@ -67,6 +67,18 @@ if [ -x %{_sysconfdir}/rc.d/init.d/data-provider-master ]; then
fi
%post
+chown 5000:5000 /opt/usr/share/live_magazine
+chmod 750 /opt/usr/share/live_magazine
+chown 5000:5000 /opt/usr/share/live_magazine/log
+chmod 750 /opt/usr/share/live_magazine/log
+chown 5000:5000 /opt/usr/share/live_magazine/reader
+chmod 750 /opt/usr/share/live_magazine/reader
+chown 5000:5000 /opt/usr/share/live_magazine/always
+chmod 750 /opt/usr/share/live_magazine/always
+chown 0:5000 /opt/dbspace/.livebox.db
+chmod 640 /opt/dbspace/.livebox.db
+chown 0:5000 /opt/dbspace/.livebox.db-journal
+chmod 640 /opt/dbspace/.livebox.db-journal
echo "Successfully installed. Please start a daemon again manually"
echo "%{_sysconfdir}/init.d/data-provider-master start"
@@ -82,11 +94,11 @@ echo "%{_sysconfdir}/init.d/data-provider-master start"
%{_libdir}/systemd/user/data-provider-master.service
%{_libdir}/systemd/user/tizen-middleware.target.wants/data-provider-master.service
%{_datarootdir}/license/*
-%attr(750,app,app) /opt/usr/share/live_magazine
-%attr(750,app,app) /opt/usr/share/live_magazine/log
-%attr(750,app,app) /opt/usr/share/live_magazine/reader
-%attr(750,app,app) /opt/usr/share/live_magazine/always
-%attr(640,root,app) /opt/dbspace/.livebox.db
-%attr(640,root,app) /opt/dbspace/.livebox.db-journal
+/opt/usr/share/live_magazine
+/opt/usr/share/live_magazine/log
+/opt/usr/share/live_magazine/reader
+/opt/usr/share/live_magazine/always
+/opt/dbspace/.livebox.db
+/opt/dbspace/.livebox.db-journal
# End of a file