2020-10-07 13:49:40 +05:00
|
|
|
#!/bin/bash -e
|
2019-12-13 09:48:00 -05:00
|
|
|
################################################################################
|
2023-11-22 21:49:23 +01:00
|
|
|
## File: install-azcopy.sh
|
|
|
|
|
## Desc: Install AzCopy
|
2019-12-13 09:48:00 -05:00
|
|
|
################################################################################
|
|
|
|
|
|
2023-12-29 12:36:27 +01:00
|
|
|
# Source the helpers for use with the script
|
2021-02-24 18:21:51 +03:00
|
|
|
source $HELPER_SCRIPTS/install.sh
|
2019-12-13 09:48:00 -05:00
|
|
|
|
2020-05-13 10:01:02 +03:00
|
|
|
# Install AzCopy10
|
2024-01-26 11:52:45 +01:00
|
|
|
archive_path=$(download_with_retry "https://aka.ms/downloadazcopy-v10-linux")
|
2023-11-29 20:25:29 +01:00
|
|
|
tar xzf "$archive_path" --strip-components=1 -C /tmp
|
|
|
|
|
install /tmp/azcopy /usr/local/bin/azcopy
|
2023-12-29 12:36:27 +01:00
|
|
|
|
2021-02-24 18:21:51 +03:00
|
|
|
# Create azcopy 10 alias for backward compatibility
|
|
|
|
|
ln -sf /usr/local/bin/azcopy /usr/local/bin/azcopy10
|
2020-05-13 10:01:02 +03:00
|
|
|
|
2023-11-22 21:49:23 +01:00
|
|
|
invoke_tests "Tools" "azcopy"
|