Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 7eaffda

Browse files
committed
fix the logic of adding omsagent user to secondary group
1 parent c857847 commit 7eaffda

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

installer/datafiles/linux.data

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,8 @@ if [ $? -ne 0 ]; then
7575
fi
7676

7777
# Ensure omsagent is in the omiusers group, but leave omsagent as a group
78-
/usr/sbin/usermod -g omiusers omsagent 1> /dev/null 2> /dev/null
7978
# Ensure omsagent is in the omi group as well
80-
/usr/sbin/usermod -g omi omsagent 1> /dev/null 2> /dev/null
79+
/usr/sbin/usermod -g omiusers -a -G omi omsagent 1> /dev/null 2> /dev/null
8180

8281
# Add the 'nxautomation' group if it does not already exist
8382
# (Can't use useradd with -U since that doesn't exist on older systems)

0 commit comments

Comments
 (0)