mirror of https://github.com/apache/druid.git
68 lines
2.9 KiB
Bash
Executable File
68 lines
2.9 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
# Licensed to the Apache Software Foundation (ASF) under one or more
|
|
# contributor license agreements. See the NOTICE file distributed with
|
|
# this work for additional information regarding copyright ownership.
|
|
# The ASF licenses this file to You under the Apache License, Version 2.0
|
|
# (the "License"); you may not use this file except in compliance with
|
|
# the License. You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
#
|
|
# Script to set up the Azul Zulu JDK yum repository.
|
|
#
|
|
|
|
# Hardcode GPG key so we don't have to fetch it over http.
|
|
cat <<'EOT' > /root/RPM-GPG-KEY-azulsystems
|
|
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
|
Version: GnuPG v1
|
|
|
|
mQINBFNgFa8BEADTL/REB10M+TfiZOtFHqL5LHKkzTMn/O2r5iIqXGhi6iwZazFs
|
|
9S5g1eU7WMen5Xp9AREs+OvaHx91onPZ7ZiP7VpZ6ZdwWrnVk1Y/HfI59tWxmNYW
|
|
DmKYBGMj4EUpFPSE9EnFj7dm1WdlCvpognCwZQl9D3BseGqN7OLHfwqqmOlbYN9h
|
|
HYkT+CaqOoWDIGMB3UkBlMr0GuujEP8N1gxg7EOcSCsZH5aKtXubdUlVSphfAAwD
|
|
z4MviB39J22sPBnKmaOT3TUTO5vGeKtC9BAvtgA82jY2TtCEjetnfK/qtzj/6j2N
|
|
xVUbHQydwNQVRU92A7334YvCbn3xUUNI0WOscdmfpgCU0Z9Gb2IqDb9cMjgUi8F6
|
|
MG/QY9/CZjX62XrHRPm3aXsCJOVh/PO1sl2A/rvv8AkpJKYyhm6T8OBFptCsA3V4
|
|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ueEVpZxiv5kX56GTU9vXaOOi+8Z7Ee2w6Adz
|
|
4hrGZkzztggs4tM9geNYnd0XCdZ/ICAskKJABg7biDD1PhEBrqCIqSE3U497vibQ
|
|
Mpkkl/Zpp0BirhGWNyTg8K4JrsQ=
|
|
=d320
|
|
-----END PGP PUBLIC KEY BLOCK-----
|
|
EOT
|
|
|
|
rpm --import /root/RPM-GPG-KEY-azulsystems
|
|
rpm --rebuilddb
|
|
|
|
# Do not include "gpgkey" in the repo definition -- we've already imported it, above.
|
|
cat <<'EOT' > /etc/yum.repos.d/zulu.repo
|
|
[zulu]
|
|
name=zulu-$releasever - Azul Systems Inc., Zulu packages for $basearch
|
|
baseurl=http://repos.azulsystems.com/rhel/$releasever/$basearch
|
|
enabled=1
|
|
gpgcheck=1
|
|
protect=1
|
|
EOT
|