Update s3 arch utils
This commit is contained in:
parent
8e368db056
commit
e1aa01423f
@ -299,13 +299,14 @@ function kstore-dl-s3au {
|
||||
local p tmp _NAME
|
||||
|
||||
p="https://git.k8s.astropenguin.net/penguin/s3-arch-utils/raw/branch/master"
|
||||
_NAME=$1
|
||||
_CSUM=$1
|
||||
_NAME=$2
|
||||
|
||||
which "$_NAME" > /dev/null 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
tmp=$( mktemp )
|
||||
__download "$p/$_NAME" > $tmp
|
||||
sha256sum $tmp | grep -q "$2"
|
||||
sha256sum $tmp | grep -q "$_CSUM"
|
||||
if [ $? -eq 0 ]; then
|
||||
mv $tmp "$RBASH_BIN/$_NAME"
|
||||
chmod +x "$RBASH_BIN/$_NAME"
|
||||
@ -318,8 +319,13 @@ function kstore-dl-s3au {
|
||||
}
|
||||
|
||||
function kstore-sync {
|
||||
kstore-dl-s3au "arch_download_aws4.sh" "c885a6844d2ae50d279517a5b7ab832040c641e27b2966542cbacbf97bb6bef4" || return 1
|
||||
kstore-dl-s3au "arch_upload_aws4.sh" "b97c537c05d090b325510fab6022d945ba27a2aa821654a1fc6c6c6175691158" || return 1
|
||||
kstore-dl-s3au "574d106cdced150fa6e04a9437d356d8688035cb2c63a045fa0d4ead8b3ec941" "arch_delete_aws4.sh" || return 1
|
||||
kstore-dl-s3au "ce04b3f90b7d9a2578587c8ff841186810d977545943fb4a8234a6d6e9f7b568" "arch_delete_many_aws4.sh" || return 1
|
||||
kstore-dl-s3au "31709a639fab27b5ba071dd4c843fd3e90d4cea07bbb055c08c9720d31a8d11d" "arch_download_aws4.sh" || return 1
|
||||
kstore-dl-s3au "0bee6f925a41f496f66654062b49ea2a1cc55d877f4617d56bf91244aaf0be51" "arch_getacl_aws4.sh" || return 1
|
||||
kstore-dl-s3au "dcb89894e78351af702fabb521cf1cf6ca512db9cd4cf3c70631bb1e51ab9340" "arch_list_aws4.sh" || return 1
|
||||
kstore-dl-s3au "918cd96e5dd6f3a29f9ac90dc70b14eee595da31a8b6c74bdcd67d393b60ae3e" "arch_upload_aws4.sh" || return 1
|
||||
kstore-dl-s3au "160d29693625db3c71334d3e21a4cbba96d8af119306bea1ed935593be28dc62" "create-k8s-secrets.sh" || return 1
|
||||
}
|
||||
|
||||
function kstore-search {
|
||||
|
Loading…
Reference in New Issue
Block a user