Skip to content

Commit a8f47ae

Browse files
handled agent kill in post upgrade stage (#2818)
1 parent 4032861 commit a8f47ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

OracleIdentityGovernance/samples/scripts/agentManagement.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ kill()
740740
if [ "$containerRuntime" = "docker" ] && [ "$(docker ps -a -f "name=$AI" --format '{{.Names}}')" ]
741741
then
742742

743-
if [ ! "$operation" = "upgrade" ]
743+
if [ ! "$operation" = "upgrade" ] && [ ! "$operation" = "postUpgrade" ]
744744
then
745745
docker exec "$AI" /bin/bash -c "agent --config /app/data/conf/config.json ido lcm -i graceful_shutdown;"
746746
echo "INFO: Waiting for running operations to complete. It may take some time"
@@ -749,7 +749,7 @@ kill()
749749
docker rm -f "$AI"
750750
elif [ "$containerRuntime" = "podman" ] && [ "$(podman ps -a -f "name=$AI" --format '{{.Names}}')" ]
751751
then
752-
if [ ! "$operation" = "upgrade" ]
752+
if [ ! "$operation" = "upgrade" ] && [ ! "$operation" = "postUpgrade" ]
753753
then
754754
podman exec "$AI" /bin/bash -c "agent --config /app/data/conf/config.json ido lcm -i graceful_shutdown;"
755755
echo "INFO: Waiting for running operations to complete. It may take some time"

0 commit comments

Comments
 (0)