summaryrefslogtreecommitdiff
path: root/config/chroot_local-hooks/00-sources.list
diff options
context:
space:
mode:
Diffstat (limited to 'config/chroot_local-hooks/00-sources.list')
-rwxr-xr-xconfig/chroot_local-hooks/00-sources.list5
1 files changed, 5 insertions, 0 deletions
diff --git a/config/chroot_local-hooks/00-sources.list b/config/chroot_local-hooks/00-sources.list
index 88be772..880e38a 100755
--- a/config/chroot_local-hooks/00-sources.list
+++ b/config/chroot_local-hooks/00-sources.list
@@ -17,6 +17,11 @@ fi
sed -i -e "s|@DISTRIBUTION@|${LB_DISTRIBUTION}|g" /etc/apt/sources.list
+# old names
+case "${LB_DISTRIBUTION}" in
+ wheezy|jessie|stretch|buster) sed -i -e "s|-security||g" /etc/apt/sources.list ;;
+esac
+
# fix for archive
if [ "$LB_DISTRIBUTION" = "wheezy" ]; then
sed -i -e "s|ftp.de.debian.org/debian wheezy|archive.debian.org/debian wheezy|g" /etc/apt/sources.list