Skip to content

Commit a817fe5

Browse files
Easy-Install Script fixed (Fedora >= 41)
1 parent 7955cd4 commit a817fe5

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

install.sh

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ check_architecture() {
131131
valid_architectures='armv6, armv7, armhf, armel, arm64, amd64'
132132
;;
133133
fedora)
134-
valid_architectures='amd64'
134+
valid_architectures='amd64, arm64'
135135
;;
136136
*)
137137
error "Unsupported distribution: ${distro}. You might need to run the script providing your underlying distribution, i.e. ubuntu, debian or fedora and its codebase."
@@ -254,8 +254,14 @@ function install_dnf_package() {
254254

255255
info "Integrate Hyperion Project Repository..."
256256
info ""
257-
if ! sudocmd "add Hyperion Project repository to the system:" dnf -q -y config-manager --add-repo https://${_NIGHTLY}dnf.${_BASE_REPO_URI}/fedora/hyperion.repo; then
258-
error "Failed to add the Hyperion Project Repository. Please run 'dnf check-update' and try again."
257+
if [[ "$(rpm -E %fedora)" -lt 41 ]]; then
258+
if ! sudocmd "add Hyperion Project repository to the system:" dnf -q -y config-manager --add-repo https://${_NIGHTLY}dnf.${_BASE_REPO_URI}/fedora/hyperion.repo; then
259+
error "Failed to add the Hyperion Project Repository. Please run 'dnf check-update' and try again."
260+
fi
261+
else
262+
if ! sudocmd "add Hyperion Project repository to the system:" dnf -q -y config-manager addrepo --from-repofile=https://${_NIGHTLY}dnf.${_BASE_REPO_URI}/fedora/hyperion.repo; then
263+
error "Failed to add the Hyperion Project Repository. Please run 'dnf check-update' and try again."
264+
fi
259265
fi
260266

261267
info "Install Hyperion..."

0 commit comments

Comments
 (0)