From 19d69dac58c5dabbfa67be35c7bc4b6abb0913bb Mon Sep 17 00:00:00 2001 From: Semun Lee Date: Tue, 3 May 2016 18:13:46 +0900 Subject: [PATCH] Change the owner of /etc/skel/apps_rw to tizenglobalapp app-installer that runs as tizenglobalapp will create directories to /etc/skel/apps_rw for global applications Change-Id: Iaa313ae496a84374ea5d07f083ddf981fa8b7d39 Signed-off-by: Semun Lee --- packaging/pkgmgr.spec | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packaging/pkgmgr.spec b/packaging/pkgmgr.spec index 6891d64..849b7d7 100644 --- a/packaging/pkgmgr.spec +++ b/packaging/pkgmgr.spec @@ -117,6 +117,14 @@ chmod 755 %{buildroot}%{_sysconfdir}/package-manager/backend/pkgtool # Create tizenglobalapp user needed for global installation useradd %TZ_SYS_GLOBALAPP_USER -r -c "system user for common applications" -g root +# change owner of TZ_USER_APP (/etc/skel/apps_rw) to tizenglobalapp +saveHOME="$HOME" +HOME="%{_sysconfdir}/skel" +. "%{_sysconfdir}/tizen-platform.conf" + +chown %TZ_SYS_GLOBALAPP_USER:root $TZ_USER_APP +HOME="$saveHOME" + %post -n pkgmgr-client -p /sbin/ldconfig %postun -n pkgmgr-client -p /sbin/ldconfig -- 2.7.4