diff --git a/scripts/manager.sh b/scripts/manager.sh index 73971fe..8dbe44b 100755 --- a/scripts/manager.sh +++ b/scripts/manager.sh @@ -483,6 +483,7 @@ upgrade() { # 255 is -1, because Bash return codes are unsigned 8-bit integer, limited to the range 0 to 255. -1|255) print_header "No changes detected. Skipping upgrade..." + return -1 ;; 0) @@ -498,6 +499,14 @@ upgrade() { ;; esac + print_header "Upgraded the Docker image. + +We will stop & delete the current container and start a new one..." + + stop + docker remove $CONTAINER_NAME + start + print_header "Upgraded the Middleware Successfully!" return 0 }