af-main: Improve readability 46/21646/3
authorJosé Bollo <jose.bollo@iot.bzh>
Thu, 23 May 2019 07:37:32 +0000 (09:37 +0200)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Wed, 19 Jun 2019 13:05:28 +0000 (13:05 +0000)
While tuning the recipe, it appears that
having long options helps to understand
the recipe.

Bug-AGL: SPEC-2437
Bug-AGL: SPEC-2006

Change-Id: Ie3d1b288db0d2db3159f1b3453a02db46e863c4f
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
meta-app-framework/recipes-core/af-main/af-main_git.bb

index 0b21530..30dfe70 100644 (file)
@@ -62,8 +62,8 @@ EXTRA_OECMAKE_append = " ${@bb.utils.contains('AGL_FORBID_UNSIGNED_APPS','1','',
 
 
 USERADD_PACKAGES = "${PN}"
-USERADD_PARAM_${PN} = "-g ${afm_name} -d ${afm_datadir} -r ${afm_name}"
-GROUPADD_PARAM_${PN} = "-r ${afm_name}"
+USERADD_PARAM_${PN} = "--system --gid ${afm_name} --home-dir ${afm_datadir} ${afm_name}"
+GROUPADD_PARAM_${PN} = "--system ${afm_name}"
 
 FILES_${PN} += "\
        ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '${systemd_user_unitdir}/afm-user-daemon.service', '', d)} \