Skip to content

Commit 9c8bb15

Browse files
Added sleep to handle the concurrent execution of the crontab edit (#2914)
* fixed permission matching logic * fixed permission matching logic * fixed permission matching logic * fixed permission matching logic * updated PAR URL * Added to support handling of stuck podman container * fixed lint * Update agentAutoUpdate.sh * Update agentAutoUpdate.sh * Update agentAutoUpdate.sh
1 parent 2b12c97 commit 9c8bb15

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

OracleIdentityGovernance/samples/scripts/agentAutoUpdate.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ wget https://objectstorage.us-ashburn-1.oraclecloud.com/p/JcqrvD9KJiJKJd_2o6LoHh
2727

2828
#Get Agent Package
2929
agentVersion=$(unzip -q -c "$1"/data/agent/agent-lcm/idm-agcs-agent-lcm.jar META-INF/MANIFEST.MF | grep "Agent-Version: " | awk '{print $2}' | tr -d '\n' | tr -d '\r')
30+
31+
# shellcheck disable=SC3028,SC3007
32+
r=$[ $RANDOM % 121 ]
33+
# shellcheck disable=SC3007
34+
sleep $[r]
35+
3036
if [ -f "$1"/cacerts ]
3137
then
3238
java \
@@ -94,4 +100,4 @@ if [ "$?" = "0" ]
94100
fi
95101
fi
96102

97-
rm -rf "$1"/newpackage
103+
rm -rf "$1"/newpackage

0 commit comments

Comments
 (0)