This repository was archived by the owner on Sep 11, 2024. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments