Skip to content

Commit 004d621

Browse files
Leons Petrazickisreevejd
authored andcommitted
Also skip Softlayer upload if missing username or api key
1 parent 5cb6bd2 commit 004d621

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
66

77
## [Unreleased][]
88

9+
## [0.3.1][] - 2017-07-17
10+
### Fixed
11+
- Also skip Softlayer upload if missing username or api key
12+
913
## [0.3.0][] - 2017-07-11
1014
### Added
1115
- PostgreSQL support
@@ -42,7 +46,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
4246
- Upload to Softlayer
4347
- Travis CI for continuous integration
4448

45-
[Unreleased]: https://github.ibm.com/bdu/gamora/compare/0.2.1...HEAD
49+
[Unreleased]: https://github.ibm.com/bdu/gamora/compare/0.3.1...HEAD
50+
[0.3.0]: https://github.ibm.com/bdu/gamora/compare/0.3.0...0.3.1
4651
[0.3.0]: https://github.ibm.com/bdu/gamora/compare/0.2.1...0.3.0
4752
[0.2.1]: https://github.ibm.com/bdu/gamora/compare/0.2.0...0.2.1
4853
[0.2.0]: https://github.ibm.com/bdu/gamora/compare/0.1.7...0.2.0

gamora/docker-entrypoint.sh

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,17 @@ upload_backup() {
2020
local remote_path
2121

2222
if [[ -z "${SOFTLAYER_PATH:-}" ]]; then
23-
log "Skipping upload because no Softlayer credentials"
23+
log "Skipping upload because no Softlayer path"
24+
return
25+
fi
26+
27+
if [[ -z "${SOFTLAYER_USER:-}" ]]; then
28+
log "Skipping upload because no Softlayer user"
29+
return
30+
fi
31+
32+
if [[ -z "${SOFTLAYER_API_KEY:-}" ]]; then
33+
log "Skipping upload because no Softlayer api key"
2434
return
2535
fi
2636

0 commit comments

Comments
 (0)