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
/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