mirror of
https://github.com/bitnami/minideb.git
synced 2026-06-04 10:13:55 +08:00
Update security repo URLs
Signed-off-by: Jose Antonio Carmona <jcarmona@vmware.com>
This commit is contained in:
@@ -71,14 +71,18 @@ fi
|
||||
rootfs_chroot bash debootstrap/debootstrap --second-stage
|
||||
|
||||
repo_url="http://deb.debian.org/debian"
|
||||
sec_repo_url="http://security.debian.org/debian-security"
|
||||
sec_repo_url_1="${repo_url}-security"
|
||||
sec_repo_url_2="http://security.debian.org/debian-security"
|
||||
|
||||
echo -e "deb ${repo_url} $DIST main" > "$rootfsDir/etc/apt/sources.list"
|
||||
if [ "$DIST" == "bullseye" ] || [ "$DIST" == "bookworm" ]; then
|
||||
if [ "$DIST" == "bookworm" ]; then
|
||||
echo "deb ${repo_url} $DIST-updates main" >> "$rootfsDir/etc/apt/sources.list"
|
||||
echo "deb ${sec_repo_url} $DIST-security main" >> "$rootfsDir/etc/apt/sources.list"
|
||||
echo "deb ${sec_repo_url_1} $DIST-security main" >> "$rootfsDir/etc/apt/sources.list"
|
||||
elif [ "$DIST" == "bullseye" ]; then
|
||||
echo "deb ${repo_url} $DIST-updates main" >> "$rootfsDir/etc/apt/sources.list"
|
||||
echo "deb ${sec_repo_url_2} $DIST-security main" >> "$rootfsDir/etc/apt/sources.list"
|
||||
elif [ "$DIST" == "buster" ]; then
|
||||
echo "deb ${sec_repo_url} $DIST/updates main" >> "$rootfsDir/etc/apt/sources.list"
|
||||
echo "deb ${sec_repo_url_2} $DIST/updates main" >> "$rootfsDir/etc/apt/sources.list"
|
||||
fi
|
||||
|
||||
rootfs_chroot apt-get update
|
||||
|
||||
Reference in New Issue
Block a user