Skip to content

Commit

Permalink
Fix update ownership when omi account exist
Browse files Browse the repository at this point in the history
  • Loading branch information
JumpingYang001 committed Jul 22, 2018
1 parent f2644d6 commit c7e705e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Unix/installbuilder/datafiles/Linux.data
Original file line number Diff line number Diff line change
Expand Up @@ -223,9 +223,9 @@ if [ $? -eq 0 ]; then
echo "Creating omi service account ..."
useradd -g omi -s /bin/false -r omi
echo "Updating ownership of previous files ..."
find /opt/omi -uid $olduid -print0 | xargs -0r chown omi:omi
find /etc/opt/omi -uid $olduid -print0 | xargs -0r chown omi:omi
find /var/opt/omi -uid $olduid -print0 | xargs -0r chown omi:omi
(find /opt/omi -uid $olduid -print0 | xargs -0r chown omi:omi) > /dev/null 2>&1
(find /etc/opt/omi -uid $olduid -print0 | xargs -0r chown omi:omi) > /dev/null 2>&1
(find /var/opt/omi -uid $olduid -print0 | xargs -0r chown omi:omi) > /dev/null 2>&1
fi
else
echo "Creating omi service account ..."
Expand Down

0 comments on commit c7e705e

Please sign in to comment.