- Check profile info before moving failed lists of systemd units.
Change-Id: Iebc30d76a1ee5d007ef810c3c92c9de62213188c
# $1 : file path, $2 : file name
function move_systemd_unit
{
- # TODO : This is temporary. Checking onlycap may need to be considered later.
- if [ -e "/etc/smack/onlycap" ]
+ profile_info=$(grep "TZ_BUILD_PROFILE" /etc/tizen-build.conf | awk -F '[=]' '{ print $2 }')
+ if [ "$profile_info" == "mobile" ] || [ "$profile_info" == "wearable" ]
then
if [ ! -d $not_permitted_unit_path ]
then