-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[INJICERT-212] make download plugins from artifactory in to default i…
…mplementation Signed-off-by: Challarao <[email protected]>
- Loading branch information
1 parent
1a6ca4d
commit 4414da2
Showing
5 changed files
with
57 additions
and
11 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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
download_and_extract() { | ||
local url=$1 | ||
local dest_dir=$2 | ||
shift 2 | ||
local files_to_extract=("$@") | ||
local temp_zip=$(mktemp) | ||
|
||
wget -q "$url" -O "$temp_zip" | ||
|
||
for file in "${files_to_extract[@]}"; do | ||
unzip -o -j "$temp_zip" "$file" -d "$dest_dir" | ||
done | ||
|
||
rm -f "$temp_zip" | ||
} | ||
|
||
#if [ "$enable_esignet_artifactory" = "true" ]; then | ||
# download_and_extract "${artifactory_url_env}/artifactory/libs-release-local/esignet/esignet-wrapper.zip" "${loader_path_env}" "esignet-mock-wrapper.jar" "sunbird-rc-esignet-integration-impl.jar" | ||
#fi | ||
|
||
if [ "$enable_certify_artifactory" = "true" ]; then | ||
download_and_extract "${artifactory_url_env}/artifactory/libs-release-local/certify/certify-plugin.zip" "${loader_path_env}" "certify-sunbird-plugin.jar" | ||
fi | ||
|
||
echo "Installation complete" | ||
cd $work_dir | ||
|
||
exec "$@" |
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