mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Tell Yum where the GPG public key is, and fix the arch and version variables, per Devrim.
This commit is contained in:
parent
4632a7faba
commit
b21b03495d
@ -50,12 +50,13 @@ _create_repo_rpm() {
|
|||||||
cat << EOF > "${BUILDROOT}/${DISTRO}-repo/etc/yum.repos.d/pgadmin4.repo"
|
cat << EOF > "${BUILDROOT}/${DISTRO}-repo/etc/yum.repos.d/pgadmin4.repo"
|
||||||
[pgAdmin4]
|
[pgAdmin4]
|
||||||
name=pgadmin4
|
name=pgadmin4
|
||||||
baseurl=${PGADMIN_REPO_DIR}/${DISTRO}/${PLATFORM}-\$RELEASEVER-\$BASEARCH
|
baseurl=${PGADMIN_REPO_DIR}/${DISTRO}/${PLATFORM}-\$releasever-\$basearch
|
||||||
enabled=1
|
enabled=1
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
if [ ${INCLUDE_KEY} -eq 1 ]; then
|
if [ ${INCLUDE_KEY} -eq 1 ]; then
|
||||||
echo gpgcheck=1 >> "${BUILDROOT}/${DISTRO}-repo/etc/yum.repos.d/pgadmin4.repo"
|
echo gpgcheck=1 >> "${BUILDROOT}/${DISTRO}-repo/etc/yum.repos.d/pgadmin4.repo"
|
||||||
|
echo gpgkey=file:///etc/pki/rpm-gpg/PGADMIN_PKG_KEY >> "${BUILDROOT}/${DISTRO}-repo/etc/yum.repos.d/pgadmin4.repo"
|
||||||
else
|
else
|
||||||
echo gpgcheck=0 >> "${BUILDROOT}/${DISTRO}-repo/etc/yum.repos.d/pgadmin4.repo"
|
echo gpgcheck=0 >> "${BUILDROOT}/${DISTRO}-repo/etc/yum.repos.d/pgadmin4.repo"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user