Skip to content

Commit b133fae

Browse files
fixed permission matching logic
1 parent eb9f265 commit b133fae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

OracleIdentityGovernance/samples/scripts/agentManagement.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,8 @@ isWriteAccessOnVolume()
365365
{
366366
# shellcheck disable=SC2012
367367
permissions=$(ls -ld "$PV" | awk '{print $1}')
368-
if [ "$permissions" != "drwxrwxr-x" ] && [ "$permissions" != "drwxrwxrwx" ] && [ "$permissions" != "drwxrwxr-x." ] && [ "$permissions" != "drwxrwxrwx." ]; then
368+
perms="${permissions:0:10}"
369+
if [ "$perms" != "drwxrwxr-x" ] && [ "$perms" != "drwxrwxrwx" ]; then
369370
echo "ERROR: Volume does not have required permissions. Make sure to have 775"
370371
errorFlag=true
371372
fi

0 commit comments

Comments
 (0)