From c7e705eb8439b6f30b9bfbd2c19315ddee7cde0b Mon Sep 17 00:00:00 2001 From: JumpingYang001 Date: Fri, 20 Jul 2018 03:13:04 +0000 Subject: [PATCH] Fix update ownership when omi account exist --- Unix/installbuilder/datafiles/Linux.data | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Unix/installbuilder/datafiles/Linux.data b/Unix/installbuilder/datafiles/Linux.data index afa850fa5..54ad1897a 100644 --- a/Unix/installbuilder/datafiles/Linux.data +++ b/Unix/installbuilder/datafiles/Linux.data @@ -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 ..."