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 <sm79.lee@samsung.com>
# 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