mirror of
https://github.com/tuna/tunasync-scripts.git
synced 2025-04-19 11:42:43 +00:00
test size calc on ELF
This commit is contained in:
parent
1008f9fe9e
commit
c92b3e5148
5
ELK.sh
5
ELK.sh
@ -12,6 +12,9 @@ BASE_URL=${TUNASYNC_UPSTREAM_URL:-"https://packages.elastic.co"}
|
||||
YUM_PATH="${BASE_PATH}/yum"
|
||||
APT_PATH="${BASE_PATH}/apt"
|
||||
|
||||
export REPO_SIZE_FILE=/tmp/reposize.$RANDOM
|
||||
echo -n 0 >$REPO_SIZE_FILE
|
||||
|
||||
declare -A REPO_VERSIONS=(
|
||||
["elasticsearch"]="2.x"
|
||||
["logstash"]="2.3 2.4 5.0"
|
||||
@ -38,3 +41,5 @@ for repo in "${!REPO_VERSIONS[@]}"; do
|
||||
components=${versions// /,}
|
||||
"$yum_sync" "${BASE_URL}/${repo}/@{comp}/centos/" 7 "$components" x86_64 "${repo}-@{comp}" "$YUM_PATH"
|
||||
done
|
||||
|
||||
"${_here}/helpers/size-sum.sh" $REPO_SIZE_FILE; rm $REPO_SIZE_FILE
|
@ -1,3 +1,4 @@
|
||||
#!/bin/bash
|
||||
sz=`bc <$1`
|
||||
sz=$(cat $1)
|
||||
sz=$(echo $sz | bc)
|
||||
echo "size-sum:" $(numfmt --to=iec $sz)
|
||||
|
Loading…
x
Reference in New Issue
Block a user