Replaced cent8 with el8 for beter support
This commit is contained in:
@@ -6,7 +6,7 @@ if [ -z "$osrel" ] ; then
|
||||
if [[ "${dist}" == *"ubuntu"* ]] && [[ "${dist_ver}" == *"18.04"* ]]; then osrel=ubu1804;
|
||||
elif [[ "${dist}" == *"ubuntu"* ]] && [[ "${dist_ver}" == *"20.04"* ]]; then osrel=ubu2004;
|
||||
elif [[ "${dist}" == *"debian"* ]] && [[ "${dist_ver}" == *"10"* ]]; then osrel=deb10;
|
||||
elif [[ "${dist}" == *"centos"* ]] && [[ "${dist_ver}" == *"8"* ]]; then osrel=cent8;
|
||||
elif [[ "${dist}" == *"centos"* ]] && [[ "${dist_ver}" == *"8"* ]]; then osrel=el8;
|
||||
else echo "This distro is not (yet) supported" && exit;
|
||||
fi
|
||||
fi
|
||||
@@ -16,7 +16,7 @@ init () {
|
||||
apt install -y --no-install-recommends software-properties-common gnupg
|
||||
elif [ "$osrel" = "deb10" ]; then
|
||||
apt install -y --no-install-recommends gnupg2 apt-transport-https lsb-release ca-certificates curl
|
||||
elif [ "$osrel" = "cent8" ]; then
|
||||
elif [ "$osrel" = "el8" ]; then
|
||||
dnf install --setopt=install_weak_deps=False --best gnupg
|
||||
else
|
||||
echo "$repo repository not available for this Distro"
|
||||
@@ -27,7 +27,7 @@ mysql () {
|
||||
if [ "$osrel" = "ubu1804" ] || [ "$osrel" = "ubu2004" ] || [ "$osrel" = "deb10" ]; then
|
||||
curl --retry 7 --retry-delay 5 -s http://mirror.nxdi.nl/resources/mysql/RPM-GPG-KEY-mysql | apt-key add -
|
||||
echo "deb http://mirror.nxdi.nl/apt/mysql/"$dist"/ "$dist_name" mysql-8.0" >/etc/apt/sources.list.d/mysql.list
|
||||
elif [ "$osrel" = "cent8" ]; then
|
||||
elif [ "$osrel" = "el8" ]; then
|
||||
rpm --import http://mirror.nxdi.nl/resources/mysql/RPM-GPG-KEY-mysql
|
||||
|
||||
echo "[mysql80-community]" > /etc/yum.repos.d/mysql.repo
|
||||
@@ -52,7 +52,7 @@ universe () {
|
||||
}
|
||||
|
||||
epel () {
|
||||
if [ "$osrel" = "cent8" ] ; then
|
||||
if [ "$osrel" = "el8" ] ; then
|
||||
rpm --import http://mirror.inode.at/epel/RPM-GPG-KEY-EPEL-8
|
||||
|
||||
echo '[epel]' >> /etc/yum.repos.d/epel.repo
|
||||
@@ -90,7 +90,7 @@ nginx () {
|
||||
if [ "$osrel" = "ubu1804" ] || [ "$osrel" = "ubu2004" ] || [ "$osrel" = "deb10" ] ; then
|
||||
echo "deb [arch=amd64] http://nginx.org/packages/"$dist" "$dist_name" nginx" > /etc/apt/sources.list.d/nginx.list
|
||||
curl -fsSL https://nginx.org/keys/nginx_signing.key | apt-key add -
|
||||
elif [ "$osrel" = "cent8" ]; then
|
||||
elif [ "$osrel" = "el8" ]; then
|
||||
rpm --import https://nginx.org/keys/nginx_signing.key
|
||||
|
||||
echo '[nginx-stable]' >> /etc/yum.repos.d/nginx.repo
|
||||
@@ -111,7 +111,7 @@ php () {
|
||||
elif [ "$osrel" = "deb10" ]; then
|
||||
curl --retry 7 --retry-delay 5 -s https://packages.sury.org/php/apt.gpg -o /etc/apt/trusted.gpg.d/php.gpg
|
||||
echo "deb https://packages.sury.org/php/ "$dist_name" main" > /etc/apt/sources.list.d/php.list
|
||||
elif [ "$osrel" = "cent8" ]; then
|
||||
elif [ "$osrel" = "el8" ]; then
|
||||
rpm --import https://rpms.remirepo.net/RPM-GPG-KEY-remi2018
|
||||
|
||||
echo '[remi-safe]' >> /etc/yum.repos.d/remi-safe.repo
|
||||
|
||||
Reference in New Issue
Block a user