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 ff99983 commit 8abd037Copy full SHA for 8abd037
OracleIdentityGovernance/samples/scripts/agentManagement.sh
@@ -365,7 +365,9 @@ 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
+ # shellcheck disable=SC3057
369
+ perms="${permissions:0:10}"
370
+ if [ "$perms" != "drwxrwxr-x" ] && [ "$perms" != "drwxrwxrwx" ]; then
371
echo "ERROR: Volume does not have required permissions. Make sure to have 775"
372
errorFlag=true
373
fi
0 commit comments