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
1
Issues
1
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
8928fedc
Commit
8928fedc
authored
Feb 02, 2022
by
Anton Midyukov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
repo: setup mirror in install script 99-online-repo.sh
parent
43ff7f17
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
90-repo-mirror
features.in/repo/install2/image-scripts.d/90-repo-mirror
+17
-0
No files found.
features.in/repo/install2/image-scripts.d/90-repo-mirror
0 → 100755
View file @
8928fedc
#!/bin/sh
repo_script
=
/usr/share/install2/postinstall.d/99-online-repo.sh
[
-f
"
$repo_script
"
]
||
exit
0
[
-n
"
$GLOBAL_REPO
"
]
||
exit
0
MIRROR
=
"
${
GLOBAL_REPO
#*/
}
"
# alt, heanet, kiev, yandex, ...
repo_source
=
"/etc/apt/sources.list.d/
$MIRROR
.list"
if
[
!
-s
"
$repo_source
"
]
;
then
echo
"Error:
$repo_source
is not exist"
>
&2
exit
1
fi
sed
-i
"s;repo_source=.*;repo_source=
$repo_source
;"
"
$repo_script
"
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