fi
# TODO: MOVE TO OTHER SCRIPT OR REMOVE
-# Requested by sooyeon.kim@samsung.com
-if [ -e "/etc/skel/share/.voice" ]
-then
-find /etc/skel/share/.voice -print0 | xargs -0 chown app_fw:app_fw
-find /etc/skel/share/.voice -print0 | xargs -0 chsmack -a 'User::App::Shared'
-find /etc/skel/share/.voice -type d -print0 | xargs -0 chsmack -t
-fi
-
-for line in `find /opt/usr/home -maxdepth 1 -type d`
+# Requested by sooyeon.kim@samsung.com (.voice) and dalton.lee@samsung.com (.multiassistant)
+dir_list=(".voice" ".multiassistant")
+for item in "${dir_list[@]}"
do
- if [ -e "$line/share/.voice" ]; then
- user=$(echo $line | cut -d"/" -f5);
- find "$line/share/.voice" -print0 | xargs -0 chown $user:users
- find "$line/share/.voice" -print0 | xargs -0 chsmack -a 'User::App::Shared'
- find "$line/share/.voice" -type d -print0 | xargs -0 chsmack -t
- fi
+ if [ -e "/etc/skel/share/$item" ]
+ then
+ find /etc/skel/share/$item -print0 | xargs -0 chown app_fw:app_fw
+ find /etc/skel/share/$item -print0 | xargs -0 chsmack -a 'User::App::Shared'
+ find /etc/skel/share/$item -type d -print0 | xargs -0 chsmack -t
+ fi
+
+ for line in `find /opt/usr/home -maxdepth 1 -type d`
+ do
+ if [ -e "$line/share/$item" ]; then
+ user=$(echo $line | cut -d"/" -f5);
+ find "$line/share/$item" -print0 | xargs -0 chown $user:users
+ find "$line/share/$item" -print0 | xargs -0 chsmack -a 'User::App::Shared'
+ find "$line/share/$item" -type d -print0 | xargs -0 chsmack -t
+ fi
+ done
done
# change permission to /opt/var/lib/misc