Commit e9e446a8 authored by Matteo Melli's avatar Matteo Melli

Sync steps_staging and steps_production

parent 1a7dcaa9
Pipeline #88404 passed with stage
in 16 seconds
......@@ -8,7 +8,7 @@ set -eu
export ENVIRONMENT=$1
export GITLAB_ENV=$ENVIRONMENT
source .env_${ENVIRONMENT} # That is, .env_staging or .env_production (test also supported)
source env_${ENVIRONMENT} # That is, .env_staging or .env_production (test also supported)
source utilities
source steps_${ENVIRONMENT}
......
......@@ -13,12 +13,13 @@ export steps=(
011_check-repmgr-master
012_enable-consul-on-gcp-only
013_enable-chef-on-gcp-only
014_restore-could-not-change-directory-to-message
)
function get-rid-of-could-not-change-directory-to-message(){
for host in "$AZURE_HOSTS"
do
ssh_remote "$host" bash -c 'chmod a+x "$HOME"'
ssh_remote "$host" bash -c 'chmod o+x "$HOME"'
done
}
......@@ -211,4 +212,11 @@ function check-repmgr-master(){
>&2 echo "$GCP_MASTER_CANDIDATE is not repmgr master"
return 1
fi
}
\ No newline at end of file
}
function restore-could-not-change-directory-to-message(){
for host in "$AZURE_HOSTS"
do
ssh_remote "$host" bash -c 'chmod o-x "$HOME"'
done
}
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment