From fbda5539016e139a71697d13aee6dc8c7a67e205 Mon Sep 17 00:00:00 2001 From: Minje Ahn Date: Tue, 28 Jun 2016 16:51:51 +0900 Subject: [PATCH] Update script path Change-Id: Ib8f41699b6396cce848a2b800355468e7e1a8d40 Signed-off-by: Minje Ahn --- 30_media-server-add.post | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/30_media-server-add.post b/30_media-server-add.post index dc0d5c0..3009946 100644 --- a/30_media-server-add.post +++ b/30_media-server-add.post @@ -1,17 +1,18 @@ #!/bin/sh -e +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` /usr/bin/touch $TZ_USER_DB/.media.db -chown multimedia_fw:multimedia_fw $TZ_USER_DB/.media.db -chmod 2644 $TZ_USER_DB/.media.db +/usr/bin/chown multimedia_fw:multimedia_fw $TZ_USER_DB/.media.db +/usr/bin/chmod 2644 $TZ_USER_DB/.media.db -mkdir -p $TZ_USER_SHARE/media/.thumb/phone -mkdir -p $TZ_USER_SHARE/media/.thumb/mmc -chown -R multimedia_fw:multimedia_fw $TZ_USER_SHARE/media +/usr/bin/mkdir -p $TZ_USER_SHARE/media/.thumb/phone +/usr/bin/mkdir -p $TZ_USER_SHARE/media/.thumb/mmc +/usr/bin/chown -R multimedia_fw:multimedia_fw $TZ_USER_SHARE/media /usr/bin/chsmack -a 'User::App::Shared' -t -chmod 2775 $TZ_USER_SHARE/media -chmod -R 2777 $TZ_USER_SHARE/media/.thumb -find $NEW_USER $TZ_USER_SHARE/media/.thumb -type d -exec /usr/bin/chsmack -a 'User::App::Shared' -t {} + +/usr/bin/chmod 2775 $TZ_USER_SHARE/media +/usr/bin/chmod -R 2777 $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 {} + -- 2.7.4