mirror of
https://github.com/tommytran732/Pterodactyl-Script
synced 2024-11-22 02:21: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:
parent
54dfc9d98e
commit
ffd2a9ebc9
@ -372,14 +372,12 @@ repositories_setup(){
|
||||
apt -y install dirmngr
|
||||
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 add-apt-repository 'deb [arch=amd64] http://nyc2.mirrors.digitalocean.com/mariadb/repo/10.4/debian buster main'
|
||||
apt -y install tuned
|
||||
tuned-adm profile latency-performance
|
||||
elif [ "$dist_version" = "9" ]; then
|
||||
apt -y install dirmngr
|
||||
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 add-apt-repository 'deb [arch=amd64,i386,ppc64el] http://nyc2.mirrors.digitalocean.com/mariadb/repo/10.4/debian stretch main'
|
||||
fi
|
||||
fi
|
||||
apt-get -y update
|
||||
@ -421,7 +419,7 @@ EOF
|
||||
bash -c 'cat > /etc/yum.repos.d/mariadb.repo' <<-'EOF'
|
||||
[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
|
||||
gpgcheck=1
|
||||
EOF
|
||||
|
Loading…
Reference in New Issue
Block a user