File tree Expand file tree Collapse file tree 3 files changed +15
-1
lines changed Expand file tree Collapse file tree 3 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -15,5 +15,8 @@ RUN chmod +x /start.sh
15
15
ADD sync.sh /sync.sh
16
16
RUN chmod +x /sync.sh
17
17
18
+ ADD get.sh /get.sh
19
+ RUN chmod +x /get.sh
20
+
18
21
ENTRYPOINT ["/start.sh" ]
19
22
CMD ["" ]
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ set -e
4
+
5
+ echo " Job get started: $( date) "
6
+
7
+ umask 0
8
+ /usr/local/bin/s3cmd get -r $PARAMS " $S3_PATH " " $DATA_PATH "
9
+ chown -R +w . *
10
+
11
+ echo " Job get finished: $( date) "
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ echo "secret_key=$SECRET_KEY" >> /root/.s3cfg
14
14
if [[ " $1 " == ' no-cron' ]]; then
15
15
exec /sync.sh
16
16
elif [[ " $1 " == ' get' ]]; then
17
- exec /usr/local/bin/s3cmd get -r $PARAMS " $S3_PATH " " $DATA_PATH "
17
+ exec /get.sh
18
18
elif [[ " $1 " == ' delete' ]]; then
19
19
exec /usr/local/bin/s3cmd del -r " $S3_PATH "
20
20
else
You can’t perform that action at this time.
0 commit comments