From 48b687df7714d042a925e499c3b770d77858f37e Mon Sep 17 00:00:00 2001 From: Hussein Galal Date: Fri, 6 Sep 2024 20:24:09 +0300 Subject: [PATCH] Fix upload repo script for all distros (#70) Signed-off-by: galal-hussein --- policy/centos7/scripts/upload-repo | 4 +++- policy/centos8/scripts/upload-repo | 4 +++- policy/centos9/scripts/upload-repo | 4 +++- policy/coreos/scripts/upload-repo | 4 +++- policy/microos/scripts/upload-repo | 4 +++- policy/slemicro/scripts/upload-repo | 4 +++- 6 files changed, 18 insertions(+), 6 deletions(-) diff --git a/policy/centos7/scripts/upload-repo b/policy/centos7/scripts/upload-repo index 0a33ed3..73d151e 100755 --- a/policy/centos7/scripts/upload-repo +++ b/policy/centos7/scripts/upload-repo @@ -6,7 +6,9 @@ pushd $(dirname $0)/.. popd yum install -y epel-release -yum install -y git python2-pip python-deltarpm +yum install -y git python2-pip python-deltarpm ca-certificates +export REQUESTS_CA_BUNDLE=/etc/pki/tls/certs/ca-bundle.crt + pip install --cache-dir=/var/cache/pip --upgrade 'boto3==1.17.112' 'pip<21.0' 'setuptools<45.0' pip install --cache-dir=/var/cache/pip/ \ git+https://github.com/Voronenko/rpm-s3.git@5695c6ad9a08548141d3713328e1bd3f533d137e diff --git a/policy/centos8/scripts/upload-repo b/policy/centos8/scripts/upload-repo index 525baac..0442c50 100755 --- a/policy/centos8/scripts/upload-repo +++ b/policy/centos8/scripts/upload-repo @@ -6,7 +6,9 @@ pushd $(dirname $0)/.. popd yum install -y epel-release -yum install -y git python2-pip python-deltarpm +yum install -y git python2-pip python-deltarpm ca-certificates +export REQUESTS_CA_BUNDLE=/etc/pki/tls/certs/ca-bundle.crt + pip install --cache-dir=/var/cache/pip --upgrade 'boto3==1.17.112' 'pip<21.0' 'setuptools<45.0' pip install --cache-dir=/var/cache/pip/ \ git+https://github.com/Voronenko/rpm-s3.git@5695c6ad9a08548141d3713328e1bd3f533d137e diff --git a/policy/centos9/scripts/upload-repo b/policy/centos9/scripts/upload-repo index 9fb950c..5569399 100755 --- a/policy/centos9/scripts/upload-repo +++ b/policy/centos9/scripts/upload-repo @@ -6,7 +6,9 @@ pushd $(dirname $0)/.. popd yum install -y epel-release -yum install -y git python2-pip python-deltarpm +yum install -y git python2-pip python-deltarpm ca-certificates +export REQUESTS_CA_BUNDLE=/etc/pki/tls/certs/ca-bundle.crt + pip install --cache-dir=/var/cache/pip --upgrade 'boto3==1.17.112' 'pip<21.0' 'setuptools<45.0' pip install --cache-dir=/var/cache/pip/ \ git+https://github.com/Voronenko/rpm-s3.git@5695c6ad9a08548141d3713328e1bd3f533d137e diff --git a/policy/coreos/scripts/upload-repo b/policy/coreos/scripts/upload-repo index cc0ad41..2d91c83 100755 --- a/policy/coreos/scripts/upload-repo +++ b/policy/coreos/scripts/upload-repo @@ -6,7 +6,9 @@ pushd $(dirname $0)/.. popd yum install -y epel-release -yum install -y git python2-pip python-deltarpm +yum install -y git python2-pip python-deltarpm ca-certificates +export REQUESTS_CA_BUNDLE=/etc/pki/tls/certs/ca-bundle.crt + pip install --cache-dir=/var/cache/pip --upgrade 'boto3==1.17.112' 'pip<21.0' 'setuptools<45.0' pip install --cache-dir=/var/cache/pip/ \ git+https://github.com/Voronenko/rpm-s3.git@5695c6ad9a08548141d3713328e1bd3f533d137e diff --git a/policy/microos/scripts/upload-repo b/policy/microos/scripts/upload-repo index 716170c..fdd9696 100755 --- a/policy/microos/scripts/upload-repo +++ b/policy/microos/scripts/upload-repo @@ -6,7 +6,9 @@ pushd $(dirname $0)/.. popd yum install -y epel-release -yum install -y git python2-pip python-deltarpm +yum install -y git python2-pip python-deltarpm ca-certificates +export REQUESTS_CA_BUNDLE=/etc/pki/tls/certs/ca-bundle.crt + pip install --cache-dir=/var/cache/pip --upgrade 'boto3==1.17.112' 'pip<21.0' 'setuptools<45.0' pip install --cache-dir=/var/cache/pip/ \ git+https://github.com/Voronenko/rpm-s3.git@5695c6ad9a08548141d3713328e1bd3f533d137e diff --git a/policy/slemicro/scripts/upload-repo b/policy/slemicro/scripts/upload-repo index d0bfd5a..5f1032b 100755 --- a/policy/slemicro/scripts/upload-repo +++ b/policy/slemicro/scripts/upload-repo @@ -6,7 +6,9 @@ pushd $(dirname $0)/.. popd yum install -y epel-release -yum install -y git python2-pip python-deltarpm +yum install -y git python2-pip python-deltarpm ca-certificates +export REQUESTS_CA_BUNDLE=/etc/pki/tls/certs/ca-bundle.crt + pip install --cache-dir=/var/cache/pip --upgrade 'boto3==1.17.112' 'pip<21.0' 'setuptools<45.0' pip install --cache-dir=/var/cache/pip/ \ git+https://github.com/Voronenko/rpm-s3.git@5695c6ad9a08548141d3713328e1bd3f533d137e