mirror of
https://github.com/bitnami/minideb.git
synced 2026-06-04 10:13:55 +08:00
Remove unstable mentions and always add security repo to sources
Signed-off-by: Carlos Rodríguez Hernández <carlosrh@vmware.com>
This commit is contained in:
@@ -62,7 +62,7 @@ We provide a Makefile to help you build Minideb locally. It should be run on a D
|
||||
$ sudo make
|
||||
```
|
||||
|
||||
To build an individual release (buster, bullseye or unstable)
|
||||
To build an individual release (buster or bullseye)
|
||||
```
|
||||
$ sudo make bullseye
|
||||
```
|
||||
|
||||
@@ -78,11 +78,9 @@ repo_url="http://deb.debian.org/debian"
|
||||
sec_repo_url="http://security.debian.org/"
|
||||
|
||||
echo -e "deb ${repo_url} $DIST main" > "$rootfsDir/etc/apt/sources.list"
|
||||
echo -e "deb ${sec_repo_url} $DIST-security main" >> "$rootfsDir/etc/apt/sources.list"
|
||||
if [ "$DIST" == "bullseye" ]; 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"
|
||||
elif [ "$DIST" != "unstable" ]; then
|
||||
echo "deb ${sec_repo_url} $DIST/updates main" >> "$rootfsDir/etc/apt/sources.list"
|
||||
echo -e "deb ${repo_url} $DIST-updates main" >> "$rootfsDir/etc/apt/sources.list"
|
||||
fi
|
||||
|
||||
rootfs_chroot apt-get update
|
||||
|
||||
Reference in New Issue
Block a user