change(restic): add aws_session_token introduced in restic 0.9.2

This commit is contained in:
Nicolas KAROLAK 2018-08-09 11:35:49 +02:00 committed by Jerome Charaoui
parent ca5358bc3f
commit a8fa5f429b
2 changed files with 5 additions and 0 deletions

View File

@ -78,6 +78,8 @@ password = secret
#aws_secret_access_key =
#aws_session_token =
[swift]
#os_auth_url =

View File

@ -37,6 +37,7 @@ setsection s3
getconf aws_access_key_id
getconf aws_secret_access_key
getconf aws_session_token
setsection swift
@ -167,6 +168,8 @@ if [ "$(echo "$repository" | /usr/bin/awk -F ':' '{print $1}')" == "s3" ]; then
export_debug AWS_ACCESS_KEY_ID "$aws_access_key_id"
export_debug AWS_SECRET_ACCESS_KEY "$aws_secret_access_key"
[ -n "$aws_session_token" ] && \
export_debug AWS_SESSION_TOKEN "$aws_session_token"
fi