Skip to content

Commit

Permalink
add omsagent to omi group (#1555)
Browse files Browse the repository at this point in the history
  • Loading branch information
aswatt committed Feb 6, 2024
1 parent c40ca36 commit c857847
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions installer/datafiles/linux.data
Expand Up @@ -76,6 +76,8 @@ 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

# 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 Expand Up @@ -165,6 +167,10 @@ if ${{PERFORMING_UPGRADE_NOT}}; then
# Unconfigure sudo if it's already configured
RemoveSudoersSupport

# Remove omsagent from the omi group
echo "Removing omsagent from the omi group ..."
gpasswd -d omsagent omi

# Remove the service accounts
echo "Deleting nxautomation service account ..."
userdel nxautomation 2> /dev/null
Expand Down

0 comments on commit c857847

Please sign in to comment.