File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -3,15 +3,15 @@ set -euo pipefail
3
3
4
4
STORAGE_SERVICE_ALIAS=${STORAGE_SERVICE_ALIAS:= " s3" }
5
5
STORAGE_SERVICE_URL=${STORAGE_SERVICE_URL:= " https://s3.amazonaws.com" }
6
- SESSION_TOKEN =${SESSION_TOKEN := " " }
6
+ AWS_SESSION_TOKEN =${AWS_SESSION_TOKEN := " " }
7
7
MIRROR_SOURCE=${MIRROR_SOURCE:= " ." }
8
- REGION =${REGION := " " }
8
+ AWS_REGION =${AWS_REGION := " " }
9
9
10
10
# Set mc configuration
11
- if [ -z " $SESSION_TOKEN " ]; then
11
+ if [ -z " $AWS_SESSION_TOKEN " ]; then
12
12
mc alias set " $STORAGE_SERVICE_ALIAS " " $STORAGE_SERVICE_URL " " $ACCESS_KEY_ID " " $SECRET_ACCESS_KEY "
13
13
else
14
- export MC_HOST_${STORAGE_SERVICE_ALIAS} =https://${ACCESS_KEY_ID} :${SECRET_ACCESS_KEY} :${SESSION_TOKEN } @s3.${REGION } .amazonaws.com
14
+ export MC_HOST_${STORAGE_SERVICE_ALIAS} =https://${ACCESS_KEY_ID} :${SECRET_ACCESS_KEY} :${AWS_SESSION_TOKEN } @s3.${AWS_REGION } .amazonaws.com
15
15
fi
16
16
17
17
# Execute mc mirror
You can’t perform that action at this time.
0 commit comments