Show More
@@ -3490,12 +3490,18 b' rcstack_stack_upgrade_rhodecode_command() {' | |||||
3490 | scale_2=$(( scale * 2 )) |
|
3490 | scale_2=$(( scale * 2 )) | |
3491 |
|
3491 | |||
3492 | echo "" |
|
3492 | echo "" | |
3493 |
echo "Found $scale |
|
3493 | echo "Found $scale old container[s] for $target_container" | |
3494 |
echo " |
|
3494 | echo "Old container-ids:" "${old_docker_ids[@]}" | |
3495 | echo "" |
|
3495 | echo "" | |
3496 |
|
3496 | |||
3497 | echo "Scaling to 2x ($scale_2 total) containers for $target_container" |
|
3497 | if [[ $scale == "0" ]]; then | |
3498 | ./$RC_SCRIPT_NAME stack rhodecode up $target_container --no-recreate --detach --scale $target_container=$scale_2 |
|
3498 | echo "No previous services found, doing a regular start for $target_container" | |
|
3499 | ./$RC_SCRIPT_NAME stack rhodecode up $target_container --detach | |||
|
3500 | return | |||
|
3501 | else | |||
|
3502 | echo "Scaling to 2x ($scale_2 total) containers for $target_container" | |||
|
3503 | ./$RC_SCRIPT_NAME stack rhodecode up $target_container --no-recreate --detach --scale $target_container=$scale_2 | |||
|
3504 | fi | |||
3499 |
|
3505 | |||
3500 | # array with ALL new containers |
|
3506 | # array with ALL new containers | |
3501 | local -a scaled_docker_ids |
|
3507 | local -a scaled_docker_ids |
General Comments 0
You need to be logged in to leave comments.
Login now