Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions templates/linux/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ update() {
}

install_rpm() {
dnf install -y "$@"
dnf install -y --setopt install_weak_deps=False "$@"
}

remove_rpm() {
Expand Down Expand Up @@ -498,16 +498,12 @@ install_mysql() {
user_password="$(generate_password)"

if [[ $os_type == 'rhel' ]]; then
if [[ $os_version == '8' ]]; then
install_rpm https://dev.mysql.com/get/mysql80-community-release-el8-9.noarch.rpm
dnf -y module disable mysql
else
install_rpm https://dev.mysql.com/get/mysql80-community-release-el9-5.noarch.rpm
fi
install_rpm "https://dev.mysql.com/get/mysql84-community-release-el${os_version}-2.noarch.rpm"
fi

if [[ $os_type == 'debian' ]] || [[ $os_type == 'ubuntu' ]]; then
install wget debconf-utils lsb-release gnupg2
debconf-set-selections <<< "mysql-apt-config mysql-apt-config/select-server select mysql-8.4-lts"
debconf-set-selections <<< "mysql-apt-config mysql-apt-config/select-product select Ok"
debconf-set-selections <<< "mysql-server mysql-server/root_password password ${root_password}"
debconf-set-selections <<< "mysql-server mysql-server/root_password_again password ${root_password}"
Expand Down