Add DB space for ebook search 88/272188/3 accepted/tizen/unified/20220315.132316 submit/tizen/20220314.234504
authorMinje Ahn <minje.ahn@samsung.com>
Fri, 11 Mar 2022 00:13:30 +0000 (09:13 +0900)
committerMinje Ahn <minje.ahn@samsung.com>
Fri, 11 Mar 2022 08:46:30 +0000 (17:46 +0900)
Added DB space(directory) for ebook search under the directory managed by media-server.

Change-Id: I849ca0ad0fad819fe92e206145d9a402d5b954b4
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
30_media-server-add.post

index ffb0e4f..f67dae6 100644 (file)
@@ -4,6 +4,7 @@ PATH=/bin:/usr/bin:/sbin:/usr/sbin
 NEW_USER=$1
 export `tzplatform-get --user $NEW_USER TZ_USER_SHARE`
 export `tzplatform-get --user $NEW_USER TZ_USER_DB`
+export `tzplatform-get --user $NEW_USER TZ_SYS_USER_GROUP`
 
 if [ ! -e /system-update ]
 then
@@ -17,5 +18,9 @@ then
 /usr/bin/chsmack -a 'User::App::Shared' -t $TZ_USER_SHARE/media
 /usr/bin/chmod 0775 $TZ_USER_SHARE/media
 /usr/bin/chmod -R 0777 $TZ_USER_SHARE/media/.thumb
-/usr/bin/find $NEW_USER $TZ_USER_SHARE/media/.thumb -type d -exec /usr/bin/chsmack -a 'User::App::Shared' -t {} +
+/usr/bin/find $TZ_USER_SHARE/media/.thumb -type d -exec /usr/bin/chsmack -a 'User::App::Shared' -t {} +
+
+/usr/bin/mkdir $TZ_USER_SHARE/media/.ebook
+/usr/bin/chown $NEW_USER:$TZ_SYS_USER_GROUP $TZ_USER_SHARE/media/.ebook
+/usr/bin/chmod 0775 $TZ_USER_SHARE/media/.ebook
 fi