1
0
mirror of https://github.com/tommytran732/Pterodactyl-Script synced 2024-11-09 05:01:33 -05:00

MariaDB repo fixes

Removed useless repo for Debian and update CentOS 7's repo to 10.5
This commit is contained in:
TommyTran732 2020-09-11 01:34:46 -04:00 committed by GitHub
parent 54dfc9d98e
commit ffd2a9ebc9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -372,14 +372,12 @@ repositories_setup(){
apt -y install dirmngr apt -y install dirmngr
wget -q https://packages.sury.org/php/apt.gpg -O- | sudo apt-key add - wget -q https://packages.sury.org/php/apt.gpg -O- | sudo apt-key add -
sudo apt-key adv --fetch-keys 'https://mariadb.org/mariadb_release_signing_key.asc' sudo apt-key adv --fetch-keys 'https://mariadb.org/mariadb_release_signing_key.asc'
sudo add-apt-repository 'deb [arch=amd64] http://nyc2.mirrors.digitalocean.com/mariadb/repo/10.4/debian buster main'
apt -y install tuned apt -y install tuned
tuned-adm profile latency-performance tuned-adm profile latency-performance
elif [ "$dist_version" = "9" ]; then elif [ "$dist_version" = "9" ]; then
apt -y install dirmngr apt -y install dirmngr
wget -q https://packages.sury.org/php/apt.gpg -O- | sudo apt-key add - wget -q https://packages.sury.org/php/apt.gpg -O- | sudo apt-key add -
sudo apt-key adv --fetch-keys 'https://mariadb.org/mariadb_release_signing_key.asc' sudo apt-key adv --fetch-keys 'https://mariadb.org/mariadb_release_signing_key.asc'
sudo add-apt-repository 'deb [arch=amd64,i386,ppc64el] http://nyc2.mirrors.digitalocean.com/mariadb/repo/10.4/debian stretch main'
fi fi
fi fi
apt-get -y update apt-get -y update
@ -421,7 +419,7 @@ EOF
bash -c 'cat > /etc/yum.repos.d/mariadb.repo' <<-'EOF' bash -c 'cat > /etc/yum.repos.d/mariadb.repo' <<-'EOF'
[mariadb] [mariadb]
name = MariaDB name = MariaDB
baseurl = http://yum.mariadb.org/10.4/centos7-amd64 baseurl = http://yum.mariadb.org/10.5/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1 gpgcheck=1
EOF EOF