mirror of
https://github.com/certbot/certbot.git
synced 2026-03-05 06:43:26 -05:00
move lsb install into newer with --no-install-recommends
This commit is contained in:
parent
a1f025980a
commit
fba2de706e
1 changed files with 3 additions and 2 deletions
|
|
@ -12,12 +12,11 @@
|
|||
# - Raspbian:
|
||||
# - 7.8 (armhf)
|
||||
|
||||
apt-get update
|
||||
apt-get install -y lsb-release
|
||||
|
||||
# virtualenv binary can be found in different packages depending on
|
||||
# distro version (#346)
|
||||
newer () {
|
||||
apt-get install -y lsb-release --no-install-recommends
|
||||
distro=$(lsb_release -si)
|
||||
# 6.0.10 => 60, 14.04 => 1404
|
||||
# TODO: in sid version==unstable
|
||||
|
|
@ -33,6 +32,8 @@ newer () {
|
|||
fi
|
||||
}
|
||||
|
||||
apt-get update
|
||||
|
||||
# you can force newer if lsb_release is not available (e.g. Docker
|
||||
# debian:jessie base image)
|
||||
if [ "$1" = "newer" ] || newer
|
||||
|
|
|
|||
Loading…
Reference in a new issue