File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -8,14 +8,13 @@ sed -i 's/# StrictHostKeyChecking ask.*/StrictHostKeyChecking accept-new/' /et
88FILENAME=" ${INPUT_DB_DUMP_FILENAME_BASE} -$( date +%F-%T) "
99
1010# Check if the optional relationship value exists.
11- RELATIONSHIP=" "
1211if [ -z " ${INPUT_PLATFORMSH_RELATIONSHIP} " ]
1312then
14- echo " No relationship variable provided so no relationship parameter added to platform db:dump."
13+ # Run command without --relationship parameter.
14+ platform db:dump -v --yes --project " $INPUT_PLATFORMSH_PROJECT " --environment " $INPUT_PLATFORMSH_ENVIRONMENT " --gzip -f " $FILENAME " .sql.gz
1515else
16- RELATIONSHIP=" --relationship $INPUT_PLATFORMSH_RELATIONSHIP "
16+ # Run command with --relationship parameter.
17+ platform db:dump -v --yes --project " $INPUT_PLATFORMSH_PROJECT " --environment " $INPUT_PLATFORMSH_ENVIRONMENT " --relationship " $INPUT_PLATFORMSH_RELATIONSHIP " --gzip -f " $FILENAME " .sql.gz
1718fi
1819
19- platform db:dump -v --yes --project " $INPUT_PLATFORMSH_PROJECT " --environment " $INPUT_PLATFORMSH_ENVIRONMENT " " $RELATIONSHIP " --gzip -f " $FILENAME " .sql.gz
20-
2120aws s3 cp " $FILENAME " .sql.gz s3://" $INPUT_AWS_S3_BUCKET "
You can’t perform that action at this time.
0 commit comments