From: VBS Date: Thu, 27 Feb 2025 07:20:04 +0000 (+0900) Subject: Change user of a directory (/opt/usr/data/.voice) X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8db6dc0c51301a2b7ea45e058ffc360e40137aca;p=platform%2Fcore%2Fuifw%2Ftts.git Change user of a directory (/opt/usr/data/.voice) Change-Id: Id2bee22d17e771b8e354d2f69cf68aa8ea4b4304 Signed-off-by: VBS --- diff --git a/packaging/tts.spec b/packaging/tts.spec index 4aa17343..0a47df85 100644 --- a/packaging/tts.spec +++ b/packaging/tts.spec @@ -205,7 +205,7 @@ chsmack -t %{TZ_SYS_GLOBALUSER_DATA}/.voice/tts/engine-info chsmack -t %{TZ_SYS_GLOBALUSER_DATA}/.voice/tts/personal-info chsmack -a "User::App::Shared" %{TZ_SYS_GLOBALUSER_DATA}/.voice/tts/engine-info chsmack -a "User::App::Shared" %{TZ_SYS_GLOBALUSER_DATA}/.voice/tts/personal-info -chown -R ui_fw:users %{TZ_SYS_GLOBALUSER_DATA}/.voice +chown -R owner:users %{TZ_SYS_GLOBALUSER_DATA}/.voice %postun -p /sbin/ldconfig diff --git a/script/migration/tts.sh b/script/migration/tts.sh index 7f40fb28..e7e27e7d 100644 --- a/script/migration/tts.sh +++ b/script/migration/tts.sh @@ -60,8 +60,9 @@ function tts_migration() { chmod 664 $DST_CONF_PATH fi - chown -R ui_fw:users $(get_rw_path)/usr/data/.voice + chown -R owner:users $(get_rw_path)/usr/data/.voice + log I "TTS Migration change owner of .voice" log I "TTS Migration 7.0 only END" else log I "TTS Migration after 8.0 START" @@ -90,9 +91,11 @@ function tts_migration() { mkdir -p -m 0775 $DST_PERSONAL_INFO_PATH chsmack -t $DST_PERSONAL_INFO_PATH chsmack -a "User::App::Shared" $DST_PERSONAL_INFO_PATH - chown -R ui_fw:users $(get_rw_path)/usr/data/.voice fi + chown -R owner:users $(get_rw_path)/usr/data/.voice + + log I "TTS Migration change owner of .voice" log I "TTS Migration after 8.0 END" fi }