diff options
Diffstat (limited to 'redhat/build/configure_repository.sh')
-rwxr-xr-x | redhat/build/configure_repository.sh | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/redhat/build/configure_repository.sh b/redhat/build/configure_repository.sh new file mode 100755 index 000000000..2456b1a6a --- /dev/null +++ b/redhat/build/configure_repository.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +TDE_VERSION=${1:-14.0.0} +ARCH=$(uname -i) +RPMDIR=$(rpm -E %{_rpmdir}.tde-${TDE_VERSION}) + +if [ -x /usr/bin/yum ]; then + cat <<EOF >/tmp/rpmbuild-tde.repo +[rpmbuild.${ARCH}] +name=rpmbuild.${ARCH} +baseurl=file://${RPMDIR}/${ARCH} +enabled=1 +gpgcheck=0 + +[rpmbuild.noarch] +name=rpmbuild.noarch +baseurl=file://${RPMDIR}/noarch +enabled=1 +gpgcheck=0 +EOF + sudo mv -f /tmp/rpmbuild-tde.repo /etc/yum.repos.d/ +fi |