Skip to content

Commit

Permalink
chrootmirror: remove pre-jessie code
Browse files Browse the repository at this point in the history
  • Loading branch information
zeha committed Nov 17, 2023
1 parent 0a759e7 commit ce80d13
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions chroot-script
Original file line number Diff line number Diff line change
Expand Up @@ -101,20 +101,10 @@ chrootmirror() {
fi
fi

# LTS support
case "$RELEASE" in
squeeze)
if [ -n "$MIRROR" ] ; then
echo "Release matching $RELEASE - enabling LTS support in sources.list"
echo "deb $MIRROR ${RELEASE}-lts $COMPONENTS" >> /etc/apt/sources.list
fi
;;
esac

# add security.debian.org:
case "$RELEASE" in
unstable|sid|lenny) ;; # no security pool available
squeeze|wheezy|jessie|stretch|buster)
unstable|sid) ;; # no security pool available
jessie|stretch|buster)
echo "Adding security.debian.org to sources.list."
echo "deb http://security.debian.org ${RELEASE}/updates $COMPONENTS" >> /etc/apt/sources.list
;;
Expand Down

0 comments on commit ce80d13

Please sign in to comment.