[UTC][wav-player][Non-ACR] Fix container tpk UTC failure due to directory permssion
authorSeungbae Shin <seungbae.shin@samsung.com>
Wed, 21 Dec 2016 09:43:57 +0000 (18:43 +0900)
committerSeungbae Shin <seungbae.shin@samsung.com>
Wed, 21 Dec 2016 09:44:58 +0000 (18:44 +0900)
Change-Id: Iab866d6a34e47281696c382f58db062c933ca57c

scripts_tpk/spec.sh
src/utc/wav-player/post-install/post-inst.sh

index 7a07ebc..c4f2acb 100755 (executable)
@@ -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"
index b4a7979..3e0df50 100755 (executable)
@@ -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"