Skip to content

Commit 8abd037

Browse files
Fixed for matching permissions (#2842)
* fixed permission matching logic * fixed permission matching logic * fixed permission matching logic * fixed permission matching logic
1 parent ff99983 commit 8abd037

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

OracleIdentityGovernance/samples/scripts/agentManagement.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,9 @@ 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+
# shellcheck disable=SC3057
369+
perms="${permissions:0:10}"
370+
if [ "$perms" != "drwxrwxr-x" ] && [ "$perms" != "drwxrwxrwx" ]; then
369371
echo "ERROR: Volume does not have required permissions. Make sure to have 775"
370372
errorFlag=true
371373
fi

0 commit comments

Comments
 (0)