Skip to content

Commit ef254df

Browse files
authored
Merge pull request #232 from thaJeztah/remove_jessie_stretch
remove code for Debian Jessie and "Kali Linux"
2 parents e93e554 + 5e579a6 commit ef254df

1 file changed

Lines changed: 1 addition & 16 deletions

File tree

install.sh

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -171,14 +171,6 @@ get_distribution() {
171171
echo "$lsb_dist"
172172
}
173173

174-
add_debian_backport_repo() {
175-
debian_version="$1"
176-
backports="deb http://ftp.debian.org/debian $debian_version-backports main"
177-
if ! grep -Fxq "$backports" /etc/apt/sources.list; then
178-
(set -x; $sh_c "echo \"$backports\" >> /etc/apt/sources.list")
179-
fi
180-
}
181-
182174
echo_docker_as_nonroot() {
183175
if is_dry_run; then
184176
return
@@ -258,7 +250,7 @@ check_forked() {
258250
9)
259251
dist_version="stretch"
260252
;;
261-
8|'Kali Linux 2')
253+
8)
262254
dist_version="jessie"
263255
;;
264256
esac
@@ -392,13 +384,6 @@ do_install() {
392384
case "$lsb_dist" in
393385
ubuntu|debian|raspbian)
394386
pre_reqs="apt-transport-https ca-certificates curl"
395-
if [ "$lsb_dist" = "debian" ]; then
396-
# libseccomp2 does not exist for debian jessie main repos for aarch64
397-
if [ "$(uname -m)" = "aarch64" ] && [ "$dist_version" = "jessie" ]; then
398-
add_debian_backport_repo "$dist_version"
399-
fi
400-
fi
401-
402387
if ! command -v gpg > /dev/null; then
403388
pre_reqs="$pre_reqs gnupg"
404389
fi

0 commit comments

Comments
 (0)