Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
migration
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gitlab-com
migration
Commits
d72f1143
Commit
d72f1143
authored
Aug 09, 2018
by
John Jarvis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removing echos.
parent
366a5893
Pipeline
#88986
failed with stage
in 14 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
bin/scripts/02_failover/060_go/p04/shutdown-azure-primary.sh
bin/scripts/02_failover/060_go/p04/shutdown-azure-primary.sh
+2
-2
bin/scripts/02_failover/060_go/p04/shutdown-azure-secondaries.sh
...ipts/02_failover/060_go/p04/shutdown-azure-secondaries.sh
+2
-2
No files found.
bin/scripts/02_failover/060_go/p04/shutdown-azure-primary.sh
View file @
d72f1143
...
@@ -14,9 +14,9 @@ recovery=$(ssh_host "$POSTGRESQL_AZURE_PRIMARY" "sudo gitlab-psql -t -d gitlab_
...
@@ -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_AZURE_PRIMARY
: pg_is_in_recovery=
$recovery
"
echo
"postgresql will be shutdown on the above host, press enter to continue"
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:"
echo
"Getting status:"
p_status
=
$(
ssh_host
"
$POSTGRESQL_AZURE_PRIMARY
"
"sudo gitlab-ctl status postgresql"
)
p_status
=
$(
ssh_host
"
$POSTGRESQL_AZURE_PRIMARY
"
"sudo gitlab-ctl status postgresql"
)
...
...
bin/scripts/02_failover/060_go/p04/shutdown-azure-secondaries.sh
View file @
d72f1143
...
@@ -17,12 +17,12 @@ do
...
@@ -17,12 +17,12 @@ do
done
done
echo
"postgresql will be shutdown on the above hosts, press enter to continue"
echo
"postgresql will be shutdown on the above hosts, press enter to continue"
read
-r
""
read
-r
echo
"Shutting down:"
echo
"Shutting down:"
for
secondary
in
${
POSTGRESQL_AZURE_SECONDARIES
[*]
}
for
secondary
in
${
POSTGRESQL_AZURE_SECONDARIES
[*]
}
do
do
ssh_host
"
$secondary
"
"
echo
sudo gitlab-ctl stop postgresql"
ssh_host
"
$secondary
"
"sudo gitlab-ctl stop postgresql"
done
done
echo
"Getting status:"
echo
"Getting status:"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment