Use tizen-build.conf to distinguish a profile 01/232201/1
authorjin-gyu.kim <jin-gyu.kim@samsung.com>
Wed, 29 Apr 2020 04:50:34 +0000 (13:50 +0900)
committerjin-gyu.kim <jin-gyu.kim@samsung.com>
Wed, 29 Apr 2020 04:50:37 +0000 (13:50 +0900)
- Check profile info before moving failed lists of systemd units.

Change-Id: Iebc30d76a1ee5d007ef810c3c92c9de62213188c

test/new_service_test/systemd_test_util

index 9e7566b74aedd0b8f433e4c978a83433573f0ae6..0856fa7228b5eb92104b3564ea36b87a010c9bb6 100644 (file)
@@ -12,8 +12,8 @@ dbus_service_dir="/usr/share/dbus-1/system-services/"
 # $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