Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
alpine-conf
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
18
Issues
18
List
Boards
Labels
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alpine
alpine-conf
Commits
ca99d9e3
Commit
ca99d9e3
authored
Dec 23, 2010
by
Jeff Bilyk
Committed by
Natanael Copa
Dec 28, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
alpine-conf: add script to add dl-3 internet repos from setup-alpine script
ref # 487
parent
ca0e1095
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
0 deletions
+42
-0
Makefile
Makefile
+1
-0
setup-alpine.in
setup-alpine.in
+6
-0
setup-apkrepos.in
setup-apkrepos.in
+35
-0
No files found.
Makefile
View file @
ca99d9e3
...
...
@@ -13,6 +13,7 @@ SBIN_FILES := lbu\
setup-ads
\
setup-alpine
\
setup-alpine-web
\
setup-apkrepos
\
setup-cryptswap
\
setup-disk
\
setup-dns
\
...
...
setup-alpine.in
View file @
ca99d9e3
...
...
@@ -67,3 +67,9 @@ _hn=${_hn%%.*}
sed
-i
-e
"s/^127
\.
0
\.
0
\.
1.*/127.0.0.1
\t
${
_hn
}
.
${
_dn
:-
$(
get_fqdn
)
}
${
_hn
}
localhost.localdomain localhost/"
/etc/hosts
printf
"Setup internet apk repositories? [y/N]?"
default_read setuprepos
"n"
if
[
$setuprepos
==
"Y"
]
||
[
$setuprepos
==
"y"
]
;
then
$PREFIX
/sbin/setup-apkrepos
fi
setup-apkrepos.in
0 → 100755
View file @
ca99d9e3
#!/bin/sh
PROGRAM
=
setup-apkrepos
PREFIX
=
.
$PREFIX
/lib/libalpine.sh
while
true
;
do
printf
"Enter repository branch :
\n
"
printf
"1 1.10
\n
"
printf
"2 2.0
\n
"
printf
"3 2.1
\n
"
printf
"4 edge
\n
"
default_read REPO
"3"
if
[
$REPO
-gt
0
]
&&
[
$REPO
-lt
5
]
;
then
break
fi
done
if
[
$REPO
==
1
]
;
then
echo
"v1.10 repos selected"
echo
"http://dl-3.alpinelinux.org/alpine/v1.10/packages/main"
>>
/etc/apk/repositories
apk update
elif
[
$REPO
==
2
]
;
then
echo
"v2.0 repos selected"
;
echo
"http://dl-3.alpinelinux.org/alpine/v2.0/packages/main"
>>
/etc/apk/repositories
apk update
elif
[
$REPO
==
3
]
;
then
echo
"v2.1 repos selected"
;
echo
"http://dl-3.alpinelinux.org/alpine/v2.1/packages/main"
>>
/etc/apk/repositories
apk update
elif
[
$REPO
==
4
]
;
then
echo
"edge repos selected"
;
echo
"http://dl-3.alpinelinux.org/alpine/edge/packages/main"
>>
/etc/apk/repositories
apk update
fi
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