mirror of
https://github.com/kneutron/ansitest.git
synced 2025-01-16 04:42:55 +08:00
fix dns-compliant bucket names
This commit is contained in:
parent
1b9f87047b
commit
a3802563c7
@ -22,7 +22,8 @@ sleep 1
|
|||||||
out2=$(echo "$out1$((1 + $RANDOM % 99))$(date)" |sha256sum)
|
out2=$(echo "$out1$((1 + $RANDOM % 99))$(date)" |sha256sum)
|
||||||
# include random number from 1-99 to try and prevent collisions
|
# include random number from 1-99 to try and prevent collisions
|
||||||
|
|
||||||
result=$(echo "$prefix-rbn-$out2" |tr ' ' '.' |cut -c 1-$pad)
|
# fix for https://www.cloudconformity.com/knowledge-base/aws/S3/dns-compliant-buckets-names.html
|
||||||
|
result=$(echo "$prefix-rbn-$out2" |tr ' ' '-' |cut -c 1-$pad)
|
||||||
|
|
||||||
echo ' 1 2 3 4 5 6 6'
|
echo ' 1 2 3 4 5 6 6'
|
||||||
echo '123456789012345678901234567890123456789012345678901234567890123'
|
echo '123456789012345678901234567890123456789012345678901234567890123'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user