From: Seungbae Shin Date: Wed, 21 Dec 2016 09:43:57 +0000 (+0900) Subject: [UTC][wav-player][Non-ACR] Fix container tpk UTC failure due to directory permssion X-Git-Tag: Public_Final_RC8~2^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9ded97088fd53f50f6f1d6cb88195996da10466f;p=test%2Ftct%2Fnative%2Fapi.git [UTC][wav-player][Non-ACR] Fix container tpk UTC failure due to directory permssion Change-Id: Iab866d6a34e47281696c382f58db062c933ca57c --- diff --git a/scripts_tpk/spec.sh b/scripts_tpk/spec.sh index 7a07ebc39..c4f2acb38 100755 --- a/scripts_tpk/spec.sh +++ b/scripts_tpk/spec.sh @@ -459,18 +459,13 @@ case "$1" in ;; "org.tizen.wav-player-native-utc") echo "Installing pre-requisites for the package $1" - cp -rf res $DEVICE_PHYSICAL_STORAGE_30/ - ;; - "org.tizen.wav-player-native-utc") - echo "Installing pre-requisites for the package $1" - mkdir -p $APP_DATA_DIR - chsmack -a "User::App::Shared" $APP_DATA_DIR - chsmack -e "User::App::Shared" $APP_DATA_DIR - cp WavPlayerTest.wav $APP_DATA_DIR/WavPlayerTest.wav - chown -R 5000:5000 $APP_DATA_DIR - chmod -R 777 $APP_DATA_DIR - chsmack -a "User::App::Shared" $APP_DATA_DIR/* - chsmack -e "User::App::Shared" $APP_DATA_DIR/* + mkdir -p $DEVICE_PHYSICAL_STORAGE_30/res + chsmack -a "User::App::Shared" $DEVICE_PHYSICAL_STORAGE_30/res + chsmack -e "User::App::Shared" $DEVICE_PHYSICAL_STORAGE_30/res + cp res/* $DEVICE_PHYSICAL_STORAGE_30/res + chmod +x -R $DEVICE_PHYSICAL_STORAGE_30/res + chsmack -a "User::App::Shared" $DEVICE_PHYSICAL_STORAGE_30/res/* + chsmack -e "User::App::Shared" $DEVICE_PHYSICAL_STORAGE_30/res/* ;; "org.tizen.webkit2-native-itc") echo "Installing pre-requisites for the package $1" diff --git a/src/utc/wav-player/post-install/post-inst.sh b/src/utc/wav-player/post-install/post-inst.sh index b4a79795e..3e0df5048 100755 --- a/src/utc/wav-player/post-install/post-inst.sh +++ b/src/utc/wav-player/post-install/post-inst.sh @@ -74,8 +74,13 @@ fi if [ $MODE == "inst" ]; then echo "Installing pre-requisites for the package $PKG_NAME" - mkdir -p $DEVICE_PHYSICAL_STORAGE_30 - cp -R $APP_DIR/$PKG_NAME/data/* $DEVICE_PHYSICAL_STORAGE_30/ + mkdir -p $DEVICE_PHYSICAL_STORAGE_30/res + chsmack -a "User::App::Shared" $DEVICE_PHYSICAL_STORAGE_30/res + chsmack -e "User::App::Shared" $DEVICE_PHYSICAL_STORAGE_30/res + cp res/* $DEVICE_PHYSICAL_STORAGE_30/res + chmod +x -R $DEVICE_PHYSICAL_STORAGE_30/res + chsmack -a "User::App::Shared" $DEVICE_PHYSICAL_STORAGE_30/res/* + chsmack -e "User::App::Shared" $DEVICE_PHYSICAL_STORAGE_30/res/* echo "Installing the pre-requisites for the package $PKG_NAME ======> Completed" else echo "Un-installing the pre-requisites for the package $PKG_NAME"