mirror of
https://gitlab.alpinelinux.org/alpine/cloud/tiny-cloud.git
synced 2025-12-16 11:52:43 +03:00
user-data/alpine-config: remove duplicate declaration
This commit is contained in:
parent
2f3ef42d9b
commit
8091e3ed84
@ -171,20 +171,6 @@ init__userdata_apk_cache() {
|
|||||||
ln -sf "$cache" "$ROOT"/etc/apk/cache
|
ln -sf "$cache" "$ROOT"/etc/apk/cache
|
||||||
}
|
}
|
||||||
|
|
||||||
init__userdata_apk_cache() {
|
|
||||||
local cache="$(get_userdata apk/cache)"
|
|
||||||
if [ -z "$cache" ]; then
|
|
||||||
return
|
|
||||||
fi
|
|
||||||
mkdir -p "$ROOT/$cache"
|
|
||||||
# make link relative
|
|
||||||
case "$cache" in
|
|
||||||
/*) cache="../..$cache";;
|
|
||||||
esac
|
|
||||||
mkdir -p "$ROOT"/etc/apk
|
|
||||||
ln -sf "$cache" "$ROOT"/etc/apk/cache
|
|
||||||
}
|
|
||||||
|
|
||||||
init__userdata_apk_repositories() {
|
init__userdata_apk_repositories() {
|
||||||
local repositories="$(get_userdata apk/repositories)"
|
local repositories="$(get_userdata apk/repositories)"
|
||||||
mkdir -p "$ROOT"/etc/apk
|
mkdir -p "$ROOT"/etc/apk
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user