Skip to content

Commit

Permalink
fix the logic of adding omsagent user to secondary group
Browse files Browse the repository at this point in the history
  • Loading branch information
NarineM committed Mar 7, 2024
1 parent c857847 commit 7eaffda
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions installer/datafiles/linux.data
Expand Up @@ -75,9 +75,8 @@ if [ $? -ne 0 ]; then
fi

# Ensure omsagent is in the omiusers group, but leave omsagent as a group
/usr/sbin/usermod -g omiusers omsagent 1> /dev/null 2> /dev/null
# Ensure omsagent is in the omi group as well
/usr/sbin/usermod -g omi omsagent 1> /dev/null 2> /dev/null
/usr/sbin/usermod -g omiusers -a -G omi omsagent 1> /dev/null 2> /dev/null

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

0 comments on commit 7eaffda

Please sign in to comment.