From 9d6bcd408243bc8f9a77f1e4848d9cd6ee524fa0 Mon Sep 17 00:00:00 2001 From: Sangyoon Jang Date: Wed, 16 Sep 2020 15:33:28 +0900 Subject: [PATCH] Fix shared data migration script chsmack should by done recursively. Add missing chsmack command. Change-Id: I359312df9e4647c11a264120b9d7899f6a9ee92e Signed-off-by: Sangyoon Jang --- data/updates/upgrade_to_30005.sh.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/data/updates/upgrade_to_30005.sh.in b/data/updates/upgrade_to_30005.sh.in index 6226536..79d2d3a 100644 --- a/data/updates/upgrade_to_30005.sh.in +++ b/data/updates/upgrade_to_30005.sh.in @@ -48,7 +48,7 @@ function migrate_shared_dir() { chown $USERNAME:users $TZ_SYS_HOME/$USERNAME/$APPS_RW/$SHARED_TMP_DIR/$package mv $TZ_SYS_HOME/$USERNAME/$APPS_RW/$package/shared/data $TZ_SYS_HOME/$USERNAME/$APPS_RW/$SHARED_DIR/$package/ - chsmack -a $USER_APP_SHARED_LABEL $TZ_SYS_HOME/$USERNAME/$APPS_RW/$SHARED_DIR/$package/data + chsmack -r -a $USER_APP_SHARED_LABEL $TZ_SYS_HOME/$USERNAME/$APPS_RW/$SHARED_DIR/$package/data cd $TZ_SYS_HOME/$USERNAME/$APPS_RW/$package/shared/ ln -s ../../$SHARED_DIR/$package/data data @@ -128,6 +128,7 @@ function migrate_user_pkg() { chown $user_name:users $root_shared_path/$SHARED_DIR/$package mv $pkg_path/shared/data $root_shared_path/$SHARED_DIR/$package/ + chsmack -r -a $USER_APP_SHARED_LABEL $root_shared_path/$SHARED_DIR/$package/data cd $pkg_path/shared/ ln -s ../../$SHARED_DIR/$package/data data -- 2.7.4