-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Do nothing if secret is empty. * add newline at bottom of file. * Renamed key.yml to object-config.yml file. * Replaced key with path and other parts of the file. Signed-off-by: Kushal Shukla <[email protected]>
- Loading branch information
1 parent
8958a49
commit b5e7c50
Showing
5 changed files
with
37 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
#!/bin/sh | ||
|
||
KEY_FILE="/key/key.yml" | ||
PATH_FILE="/key/bucket-config.yml" | ||
|
||
if [[ -f "$KEY_FILE" ]]; then | ||
echo "Found key.yml, proceeding with download..." | ||
/bin/block-sync download --tsdb-path=/data --objstore.config-file=/config/object-config.yml --key=$KEY_FILE | ||
if [[ -f "$PATH_FILE" ]]; then | ||
echo "Found bucket-config.yml, proceeding with download..." | ||
/bin/block-sync download --tsdb-path=/data --objstore.config-file=/config/object-config.yml --path=$PATH_FILE | ||
else | ||
echo "key.yml not found, skipping download." | ||
echo "bucket-config.yml not found, skipping download." | ||
exit 0 | ||
fi | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters