]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
lxc-alpine: add community repository to default repositories
authorJakub Jirutka <jakub@jirutka.cz>
Tue, 14 Mar 2017 16:28:47 +0000 (17:28 +0100)
committerJakub Jirutka <jakub@jirutka.cz>
Tue, 14 Mar 2017 16:50:35 +0000 (17:50 +0100)
Signed-off-by: Jakub Jirutka <jakub@jirutka.cz>
templates/lxc-alpine.in

index 06616b374b0becbeb5fb9a92fb41518835d8e93d..fd281f84e2974e844e471c38f5f44b8e1d2a7f12 100644 (file)
@@ -236,7 +236,6 @@ install() {
        local branch="$3"
        local extra_packages="$4"
        local apk_cache="$LXC_CACHE_DIR/apk/$arch"
-       local repo_url="$MIRROR_URL/$branch/main"
 
        if [ "$FLUSH_CACHE" = 'yes' ] && [ -d "$apk_cache" ]; then
                einfo "Cleaning cached APK packages for $arch"
@@ -249,7 +248,10 @@ install() {
 
        mkdir -p etc/apk
        ln -s "$apk_cache" etc/apk/cache
-       echo "$repo_url" > etc/apk/repositories
+
+       local repo; for repo in main community; do
+               echo "$MIRROR_URL/$branch/$repo" >> etc/apk/repositories
+       done
 
        install_packages "$arch" "alpine-base $extra_packages"
        make_dev_nodes