bintray --> jfrog.io
diff --git a/bin/apt-dependencies.sh b/bin/apt-dependencies.sh
index 88fbf8a..9e53ae0 100755
--- a/bin/apt-dependencies.sh
+++ b/bin/apt-dependencies.sh
@@ -172,10 +172,10 @@
if [ "$1" != "nojs" ]; then
# older releases don't have libmozjs60+, and we provide 1.8.5
if [ "${VERSION_CODENAME}" != "focal" -a "${VERSION_CODENAME}" != "bullseye" -a "${ARCH}" != "s390x" ]; then
- echo "deb https://apache.bintray.com/couchdb-deb ${VERSION_CODENAME} main" | \
- sudo tee /etc/apt/sources.list.d/couchdb.list
- apt-key adv --keyserver keyserver.ubuntu.com --recv-keys \
- 8756C4F765C9AC3CB6B85D62379CE192D401AB61
+ curl https://couchdb.apache.org/repo/keys.asc | gpg --dearmor | tee /usr/share/keyrings/couchdb-archive-keyring.gpg >/dev/null 2>&1
+ source /etc/os-release
+ echo "deb [signed-by=/usr/share/keyrings/couchdb-archive-keyring.gpg] https://apache.jfrog.io/artifactory/couchdb-deb/ ${VERSION_CODENAME} main" \
+ | tee /etc/apt/sources.list.d/couchdb.list >/dev/null
apt-get update
apt-get install --no-install-recommends -y couch-libmozjs185-dev
fi
diff --git a/bin/yum-dependencies.sh b/bin/yum-dependencies.sh
index 64d08ee..d651f85 100755
--- a/bin/yum-dependencies.sh
+++ b/bin/yum-dependencies.sh
@@ -179,14 +179,8 @@
if [[ $1 != "nojs" ]]; then
if [[ ${VERSION_ID} -lt 8 ]]; then
# config the CouchDB repo & install the JS packages
- cat << EOF > /etc/yum.repos.d/binary-apache-couchdb.repo
-[bintray--apache-couchdb-rpm]
-name=bintray--apache-couchdb-rpm
-baseurl=http://apache.bintray.com/couchdb-rpm/el${VERSION_ID}/${ARCH}/
-gpgcheck=0
-repo_gpgcheck=0
-enabled=1
-EOF
+ yum install -y yum-utils
+ yum-config-manager --add-repo https://couchdb.apache.org/repo/couchdb.repo
# install the JS packages
yum install -y couch-js-devel
else