Skip to content
This repository was archived by the owner on Dec 14, 2023. It is now read-only.

Commit 4f89c2d

Browse files
committed
set e
1 parent 7fb97c8 commit 4f89c2d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM python:alpine
22
MAINTAINER butlerx <[email protected]>
33
RUN apk add --update bash postgresql openssl && \
4-
pip install awscli==1.10.38 && \
4+
pip install awscli && \
55
mkdir /scripts
66
COPY backupToS3.sh /scripts/backupToS3.sh
77
CMD ["bin/sh", "/scripts/backupToS3.sh"]

backupToS3.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env bash
2+
set -e
23

34
: "${S3_BUCKET:?"No value supplied for s3 bucket name"}"
45

@@ -43,6 +44,7 @@ else
4344
echo "${S3_BUCKET} bucket exists"
4445
fi
4546

46-
aws s3 cp --region "$S3_REGION" "$zipped_filename" s3://"$S3_BUCKET"/
47+
aws s3 cp --region "$S3_REGION" "$zipped_filename" s3://"$S3_BUCKET"
4748
sleep 30
4849
rm "$zipped_filename"
50+
exit 0

0 commit comments

Comments
 (0)