Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mkimage-profiles
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ximper Linux
mkimage-profiles
Commits
4321fefc
Commit
4321fefc
authored
Apr 14, 2017
by
Michael Shigorin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
live, repo, rescue: use yandex mirror
...instead of (often-crowded) ftp.altlinux.org for updates.
parent
2f6457ea
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
60-apt
features.in/live/live/image-scripts.d/60-apt
+1
-1
90-enable-repo
features.in/repo/image-scripts.d/90-enable-repo
+1
-1
60-apt
features.in/rescue/rescue/image-scripts.d/60-apt
+1
-1
No files found.
features.in/live/live/image-scripts.d/60-apt
View file @
4321fefc
...
...
@@ -7,4 +7,4 @@ PROTO="${GLOBAL_LIVE_REPO%/*}" # http, ftp, rsync
MIRROR
=
"
${
GLOBAL_LIVE_REPO
#*/
}
"
# alt, heanet, kiev, yandex, ...
sed
-i
"s,^#
\(
rpm
\[
.*
\]
${
PROTO
:-
http
}
.*
\)
,
\1
,"
\
"/etc/apt/sources.list.d/
${
MIRROR
:-
alt
}
.list"
"/etc/apt/sources.list.d/
${
MIRROR
:-
yandex
}
.list"
features.in/repo/image-scripts.d/90-enable-repo
View file @
4321fefc
#!/bin/sh
# enable online repos if possible, just quit if anything's wrong
repo_source
=
'/etc/apt/sources.list.d/
alt
.list'
repo_source
=
'/etc/apt/sources.list.d/
yandex
.list'
[
-s
"
$repo_source
"
]
||
exit
0
...
...
features.in/rescue/rescue/image-scripts.d/60-apt
View file @
4321fefc
#!/bin/sh
# enable online repository even more unconditionally
sed
-i
"s,^#
\(
rpm
\[
alt
\]
http.*
\)
,
\1
,"
"/etc/apt/sources.list.d/
alt
.list"
sed
-i
"s,^#
\(
rpm
\[
alt
\]
http.*
\)
,
\1
,"
"/etc/apt/sources.list.d/
yandex
.list"
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