diff --git a/bin/scripts/02_failover/060_go/p04/shutdown-azure-primary.sh b/bin/scripts/02_failover/060_go/p04/shutdown-azure-primary.sh index 3c58c4d0ed7a9c851301305def1a04d3f4834fd8..9a0356527db60db6ee44b50d699c340cf229312a 100755 --- a/bin/scripts/02_failover/060_go/p04/shutdown-azure-primary.sh +++ b/bin/scripts/02_failover/060_go/p04/shutdown-azure-primary.sh @@ -14,9 +14,9 @@ recovery=$(ssh_host "$POSTGRESQL_AZURE_PRIMARY" "sudo gitlab-psql -t -d gitlab_ echo "$POSTGRESQL_AZURE_PRIMARY: pg_is_in_recovery=$recovery" echo "postgresql will be shutdown on the above host, press enter to continue" -read -r "" +read -r -ssh_host "$POSTGRESQL_AZURE_PRIMARY" "echo sudo gitlab-ctl stop postgresql" +ssh_host "$POSTGRESQL_AZURE_PRIMARY" "sudo gitlab-ctl stop postgresql" echo "Getting status:" p_status=$(ssh_host "$POSTGRESQL_AZURE_PRIMARY" "sudo gitlab-ctl status postgresql") diff --git a/bin/scripts/02_failover/060_go/p04/shutdown-azure-secondaries.sh b/bin/scripts/02_failover/060_go/p04/shutdown-azure-secondaries.sh index 7df25517cb1b476041d3b7396abb1d7ce899686a..4ab373a3302cf918386f5116fb8c5cc4ba707810 100755 --- a/bin/scripts/02_failover/060_go/p04/shutdown-azure-secondaries.sh +++ b/bin/scripts/02_failover/060_go/p04/shutdown-azure-secondaries.sh @@ -17,12 +17,12 @@ do done echo "postgresql will be shutdown on the above hosts, press enter to continue" -read -r "" +read -r echo "Shutting down:" for secondary in ${POSTGRESQL_AZURE_SECONDARIES[*]} do - ssh_host "$secondary" "echo sudo gitlab-ctl stop postgresql" + ssh_host "$secondary" "sudo gitlab-ctl stop postgresql" done echo "Getting status:"