Skip to content

Commit

Permalink
- Fixed AWS variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Christie committed Dec 17, 2020
1 parent c47a466 commit f23674a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions sql-backup/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ if [ -v BACKUP_VOLUME_IS_S3 ]; then
# Let's put AWS credentials in a custom passwd file...
echo "--] Backup volume is S3"

: "${ACCESS_KEY_ID?Need to set ACCESS_KEY_ID}"
: "${AWS_ACCESS_KEY_ID?Need to set AWS_ACCESS_KEY_ID}"
: "${AWS_SECRET_ACCESS_KEY?Need to set AWS_SECRET_ACCESS_KEY}"

echo "${ACCESS_KEY_ID}:${AWS_SECRET_ACCESS_KEY}" > "${HOME}/.passwd-s3fs"
echo "${AWS_ACCESS_KEY_ID}:${AWS_SECRET_ACCESS_KEY}" > "${HOME}/.passwd-s3fs"
chmod 600 "${HOME}"/.passwd-s3fs
# And then mount the bucket to '/data'
mkdir -p /backup
Expand Down
4 changes: 2 additions & 2 deletions sql-recovery/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ if [ -v BACKUP_VOLUME_IS_S3 ]; then
# Let's put AWS credentials in a custom passwd file...
echo "--] Backup volume is S3"

: "${ACCESS_KEY_ID?Need to set ACCESS_KEY_ID}"
: "${AWS_ACCESS_KEY_ID?Need to set AWS_ACCESS_KEY_ID}"
: "${AWS_SECRET_ACCESS_KEY?Need to set AWS_SECRET_ACCESS_KEY}"

echo "${ACCESS_KEY_ID}:${AWS_SECRET_ACCESS_KEY}" > "${HOME}/.passwd-s3fs"
echo "${AWS_ACCESS_KEY_ID}:${AWS_SECRET_ACCESS_KEY}" > "${HOME}/.passwd-s3fs"
chmod 600 "${HOME}"/.passwd-s3fs
# And then mount the bucket to '/data'
mkdir -p /backup
Expand Down

0 comments on commit f23674a

Please sign in to comment.