Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
8e277b72
Unverified
Commit
8e277b72
authored
Jul 02, 2024
by
Daniel Hiltgen
Committed by
GitHub
Jul 02, 2024
Browse files
Merge pull request #5438 from dhiltgen/fix_centos_7_build
Centos 7 EOL broke mirrors
parents
24252813
4f67b39d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
scripts/rh_linux_deps.sh
scripts/rh_linux_deps.sh
+11
-0
No files found.
scripts/rh_linux_deps.sh
View file @
8e277b72
...
...
@@ -6,10 +6,21 @@ set -ex
MACHINE
=
$(
uname
-m
)
if
grep
-i
"centos"
/etc/system-release
>
/dev/null
;
then
# As of 7/1/2024 mirrorlist.centos.org has been taken offline, so adjust accordingly
sed
-i
s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/
*
.repo
sed
-i
s/^#.
*
baseurl
=
http/baseurl
=
http/g /etc/yum.repos.d/
*
.repo
sed
-i
s/^mirrorlist
=
http/#mirrorlist
=
http/g /etc/yum.repos.d/
*
.repo
# Centos 7 derivatives have too old of a git version to run our generate script
# uninstall and ignore failures
yum remove
-y
git
yum
-y
install
epel-release centos-release-scl
# The release packages reinstate the mirrors, undo that again
sed
-i
s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/
*
.repo
sed
-i
s/^#.
*
baseurl
=
http/baseurl
=
http/g /etc/yum.repos.d/
*
.repo
sed
-i
s/^mirrorlist
=
http/#mirrorlist
=
http/g /etc/yum.repos.d/
*
.repo
yum
-y
install
dnf
if
[
"
${
MACHINE
}
"
=
"x86_64"
]
;
then
yum
-y
install
https://repo.ius.io/ius-release-el7.rpm
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment