You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-30 19:23:07 +03:00
chore(ci) MCOL-6071 refactorings
This commit is contained in:
committed by
Leonid Fedorov
parent
a27f30c73e
commit
26fd0ba4bf
@ -548,15 +548,6 @@ function execInnerDockerNoTTY() {
|
||||
fi
|
||||
}
|
||||
|
||||
function change_ubuntu_mirror() {
|
||||
local region="$1"
|
||||
message "Changing Ubuntu mirror to $region"
|
||||
sed -i "s|//\(${region}\.\)\?archive\.ubuntu\.com|//${region}.archive.ubuntu.com|g" /etc/apt/sources.list 2>/dev/null || true
|
||||
sed -i "s|//\(${region}\.\)\?archive\.ubuntu\.com|//${region}.archive.ubuntu.com|g" /etc/apt/sources.list.d/ubuntu.sources 2>/dev/null || true
|
||||
cat /etc/apt/sources.list.d/ubuntu.sources /etc/apt/sources.list 2>/dev/null | grep archive || true
|
||||
message_split
|
||||
}
|
||||
|
||||
function execInnerDockerWithRetry() {
|
||||
local max_retries=5
|
||||
local container_name=$1
|
||||
@ -583,6 +574,15 @@ function execInnerDockerWithRetry() {
|
||||
return 0
|
||||
}
|
||||
|
||||
function change_ubuntu_mirror() {
|
||||
local region="$1"
|
||||
message "Changing Ubuntu mirror to $region"
|
||||
sed -i "s|//\(${region}\.\)\?archive\.ubuntu\.com|//${region}.archive.ubuntu.com|g" /etc/apt/sources.list 2>/dev/null || true
|
||||
sed -i "s|//\(${region}\.\)\?archive\.ubuntu\.com|//${region}.archive.ubuntu.com|g" /etc/apt/sources.list.d/ubuntu.sources 2>/dev/null || true
|
||||
cat /etc/apt/sources.list.d/ubuntu.sources /etc/apt/sources.list 2>/dev/null | grep archive || true
|
||||
message_split
|
||||
}
|
||||
|
||||
change_ubuntu_mirror_in_docker() {
|
||||
local container_name=$1
|
||||
local region=$2
|
||||
|
Reference in New Issue
Block a user