We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb9f265 commit b133faeCopy full SHA for b133fae
OracleIdentityGovernance/samples/scripts/agentManagement.sh
@@ -365,7 +365,8 @@ isWriteAccessOnVolume()
365
{
366
# shellcheck disable=SC2012
367
permissions=$(ls -ld "$PV" | awk '{print $1}')
368
- if [ "$permissions" != "drwxrwxr-x" ] && [ "$permissions" != "drwxrwxrwx" ] && [ "$permissions" != "drwxrwxr-x." ] && [ "$permissions" != "drwxrwxrwx." ]; then
+ perms="${permissions:0:10}"
369
+ if [ "$perms" != "drwxrwxr-x" ] && [ "$perms" != "drwxrwxrwx" ]; then
370
echo "ERROR: Volume does not have required permissions. Make sure to have 775"
371
errorFlag=true
372
fi
0 commit comments