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

Commit c857847

Browse files
authored
add omsagent to omi group (#1555)
1 parent c40ca36 commit c857847

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

installer/datafiles/linux.data

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ fi
7676

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

8082
# Add the 'nxautomation' group if it does not already exist
8183
# (Can't use useradd with -U since that doesn't exist on older systems)
@@ -165,6 +167,10 @@ if ${{PERFORMING_UPGRADE_NOT}}; then
165167
# Unconfigure sudo if it's already configured
166168
RemoveSudoersSupport
167169

170+
# Remove omsagent from the omi group
171+
echo "Removing omsagent from the omi group ..."
172+
gpasswd -d omsagent omi
173+
168174
# Remove the service accounts
169175
echo "Deleting nxautomation service account ..."
170176
userdel nxautomation 2> /dev/null

0 commit comments

Comments
 (0)