diff --git a/.github/workflows/ci_centos7.yml b/.github/workflows/ci_centos7.yml index 5f45611f..bc3a0f85 100644 --- a/.github/workflows/ci_centos7.yml +++ b/.github/workflows/ci_centos7.yml @@ -33,9 +33,9 @@ jobs: steps: - name: Update mirrors run: | - sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo - sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo - sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo + sed -i 's:mirror.centos.org:archive.kernel.org/centos-vault:g' /etc/yum.repos.d/*.repo + sed -i 's/^#.*baseurl=http/baseurl=http/g' /etc/yum.repos.d/*.repo + sed -i 's/^mirrorlist=http/#mirrorlist=http/g' /etc/yum.repos.d/*.repo - name: Update Dependencies run: | @@ -51,9 +51,9 @@ jobs: - name: Update mirrors again because why not run: | - sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo - sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo - sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo + sed -i 's:mirror.centos.org:archive.kernel.org/centos-vault:g' /etc/yum.repos.d/*.repo + sed -i 's/^#.*baseurl=http/baseurl=http/g' /etc/yum.repos.d/*.repo + sed -i 's/^mirrorlist=http/#mirrorlist=http/g' /etc/yum.repos.d/*.repo - name: Install Dependencies 3 run: | diff --git a/.github/workflows/qa_pr_cpp_centos7.yml b/.github/workflows/qa_pr_cpp_centos7.yml index 650b0ab0..c5f01acb 100644 --- a/.github/workflows/qa_pr_cpp_centos7.yml +++ b/.github/workflows/qa_pr_cpp_centos7.yml @@ -28,9 +28,9 @@ jobs: steps: - name: Update mirrors run: | - sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo - sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo - sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo + sed -i 's:mirror.centos.org:archive.kernel.org/centos-vault:g' /etc/yum.repos.d/*.repo + sed -i 's/^#.*baseurl=http/baseurl=http/g' /etc/yum.repos.d/*.repo + sed -i 's/^mirrorlist=http/#mirrorlist=http/g' /etc/yum.repos.d/*.repo - name: Update Dependencies run: | @@ -46,9 +46,9 @@ jobs: - name: Update mirrors again because why not run: | - sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo - sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo - sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo + sed -i 's:mirror.centos.org:archive.kernel.org/centos-vault:g' /etc/yum.repos.d/*.repo + sed -i 's/^#.*baseurl=http/baseurl=http/g' /etc/yum.repos.d/*.repo + sed -i 's/^mirrorlist=http/#mirrorlist=http/g' /etc/yum.repos.d/*.repo - name: Install Dependencies 3 run: | @@ -146,9 +146,9 @@ jobs: steps: - name: Update mirrors run: | - sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo - sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo - sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo + sed -i 's:mirror.centos.org:archive.kernel.org/centos-vault:g' /etc/yum.repos.d/*.repo + sed -i 's/^#.*baseurl=http/baseurl=http/g' /etc/yum.repos.d/*.repo + sed -i 's/^mirrorlist=http/#mirrorlist=http/g' /etc/yum.repos.d/*.repo - name: Update Dependencies run: | @@ -164,9 +164,9 @@ jobs: - name: Update mirrors again because why not run: | - sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo - sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo - sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo + sed -i 's:mirror.centos.org:archive.kernel.org/centos-vault:g' /etc/yum.repos.d/*.repo + sed -i 's/^#.*baseurl=http/baseurl=http/g' /etc/yum.repos.d/*.repo + sed -i 's/^mirrorlist=http/#mirrorlist=http/g' /etc/yum.repos.d/*.repo - name: Install Dependencies 3 run: | @@ -265,9 +265,9 @@ jobs: steps: - name: Update mirrors run: | - sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo - sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo - sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo + sed -i 's:mirror.centos.org:archive.kernel.org/centos-vault:g' /etc/yum.repos.d/*.repo + sed -i 's/^#.*baseurl=http/baseurl=http/g' /etc/yum.repos.d/*.repo + sed -i 's/^mirrorlist=http/#mirrorlist=http/g' /etc/yum.repos.d/*.repo - name: Update Dependencies run: | @@ -283,9 +283,9 @@ jobs: - name: Update mirrors again because why not run: | - sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo - sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo - sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo + sed -i 's:mirror.centos.org:archive.kernel.org/centos-vault:g' /etc/yum.repos.d/*.repo + sed -i 's/^#.*baseurl=http/baseurl=http/g' /etc/yum.repos.d/*.repo + sed -i 's/^mirrorlist=http/#mirrorlist=http/g' /etc/yum.repos.d/*.repo - name: Install Dependencies 3 run: |