Merge "fm-mgr: fix to avoid useradd error" bronze-rc2
authorXiaohua Zhang <xiaohua.zhang@windriver.com>
Tue, 19 May 2020 13:33:16 +0000 (13:33 +0000)
committerGerrit Code Review <gerrit@o-ran-sc.org>
Tue, 19 May 2020 13:33:16 +0000 (13:33 +0000)
meta-stx/conf/distro/files/ks/poky_stx_aio_ks.cfg
meta-stx/conf/distro/poky-stx.conf
meta-stx/recipes-core/stx-fault/fm-mgr.inc

index 3fadb48..92460fb 100644 (file)
@@ -640,6 +640,7 @@ usermod -a -G sys_protected www
 usermod -a -G sys_protected nfv
 usermod -a -G sys_protected patching
 usermod -a -G sys_protected haproxy
+usermod -a -G snmpd fm
 usermod -P root root
 
 # Extend path variable for sysadmin
index 0c09985..869866a 100644 (file)
@@ -74,6 +74,7 @@ EXTRA_USERS_PARAMS_CONFIG = "\
        usermod -a -G sys_protected nfv; \
        usermod -a -G sys_protected patching; \
        usermod -a -G sys_protected haproxy; \
+       usermod -a -G snmpd fm; \
        usermod -P root root; \
        \
        groupadd -r -g 128 nscd; \
index 1c07da8..2a14cf3 100644 (file)
@@ -54,7 +54,7 @@ FILES_fm-mgr = "  \
 inherit useradd
 
 USERADD_PACKAGES = "fm-mgr"
-USERADD_PARAM_fm-mgr = "-r -g fm -G snmpd -u 195 -d /var/lib/fm -s /sbin/nologin -c 'fm-mgr' fm"
+USERADD_PARAM_fm-mgr = "-r -g fm -u 195 -d /var/lib/fm -s /sbin/nologin -c 'fm-mgr' fm"
 GROUPADD_PARAM_fm-mgr = "-r -g 195 fm"
 
 RDEPENDS_fm-mgr += "net-snmp-server-snmpd"