1
0
mirror of https://gitlab.alpinelinux.org/alpine/cloud/tiny-cloud.git synced 2025-12-15 11:22:43 +03:00

user-data/alpine-config: remove duplicate declaration

This commit is contained in:
Guido Trotter 2023-10-14 19:48:26 +00:00 committed by Jake Buchholz Göktürk
parent 2f3ef42d9b
commit 8091e3ed84

View File

@ -171,20 +171,6 @@ init__userdata_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() {
local repositories="$(get_userdata apk/repositories)"
mkdir -p "$ROOT"/etc/apk