From 954837b4c403edc117d1cb78a3a9453fa813bc24 Mon Sep 17 00:00:00 2001 From: Brad Warren Date: Thu, 17 Jan 2019 09:38:47 -0800 Subject: [PATCH] Remove lsb_release dependency. --- letsencrypt-auto-source/letsencrypt-auto | 11 ++--------- .../pieces/bootstrappers/deb_common.sh | 11 ++--------- 2 files changed, 4 insertions(+), 18 deletions(-) diff --git a/letsencrypt-auto-source/letsencrypt-auto b/letsencrypt-auto-source/letsencrypt-auto index c08a08160..12c25fcaa 100755 --- a/letsencrypt-auto-source/letsencrypt-auto +++ b/letsencrypt-auto-source/letsencrypt-auto @@ -378,15 +378,8 @@ BootstrapDebCommon() { if dpkg --compare-versions 1.0 gt "$AUGVERSION" ; then - if lsb_release -a | grep -q wheezy ; then - AddBackportRepo wheezy-backports "deb http://http.debian.net/debian wheezy-backports main" - elif lsb_release -a | grep -q precise ; then - # XXX add ARM case - AddBackportRepo precise-backports "deb http://archive.ubuntu.com/ubuntu precise-backports main restricted universe multiverse" - else - echo "No libaugeas0 version is available that's new enough to run the" - echo "Certbot apache plugin..." - fi + echo "No libaugeas0 version is available that's new enough to run the" + echo "Certbot apache plugin..." # XXX add a case for ubuntu PPAs fi diff --git a/letsencrypt-auto-source/pieces/bootstrappers/deb_common.sh b/letsencrypt-auto-source/pieces/bootstrappers/deb_common.sh index eb22225e4..99db04d1e 100644 --- a/letsencrypt-auto-source/pieces/bootstrappers/deb_common.sh +++ b/letsencrypt-auto-source/pieces/bootstrappers/deb_common.sh @@ -88,15 +88,8 @@ BootstrapDebCommon() { if dpkg --compare-versions 1.0 gt "$AUGVERSION" ; then - if lsb_release -a | grep -q wheezy ; then - AddBackportRepo wheezy-backports "deb http://http.debian.net/debian wheezy-backports main" - elif lsb_release -a | grep -q precise ; then - # XXX add ARM case - AddBackportRepo precise-backports "deb http://archive.ubuntu.com/ubuntu precise-backports main restricted universe multiverse" - else - echo "No libaugeas0 version is available that's new enough to run the" - echo "Certbot apache plugin..." - fi + echo "No libaugeas0 version is available that's new enough to run the" + echo "Certbot apache plugin..." # XXX add a case for ubuntu PPAs fi