summaryrefslogtreecommitdiff
path: root/scripts/files/elements/fedora-percona/install.d/05-percona-server
blob: 9c43c6ef7abe4efd66639e2f47fc732a1b7f4ea8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

# CONTEXT: GUEST during PRE-CONSTRUCTION as ROOT
# PURPOSE: Setup apt-repo list so that we can connect to Percona's repo

set -e
set -o xtrace

curl -o /etc/pki/rpm-gpg/RPM-GPG-KEY-percona http://www.percona.com/downloads/RPM-GPG-KEY-percona
cat <<EOL > /etc/yum.repos.d/Percona.repo
[percona]
name = CentOS \$releasever - Percona
baseurl=http://repo.percona.com/centos/latest/os/\$basearch/
enabled = 1
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-percona
gpgcheck = 1
EOL