Merge "Use $DISTRO_NAME instead of local lsb_release"
This commit is contained in:
commit
c307db119e
@ -4,11 +4,8 @@
|
|||||||
set -eu
|
set -eu
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
# If lsb_release is missing, just do nothing.
|
case $DISTRO_NAME in
|
||||||
DISTRO=`lsb_release -si` || true
|
'ubuntu'|'debian')
|
||||||
|
|
||||||
case $DISTRO in
|
|
||||||
'Ubuntu'|'Debian')
|
|
||||||
# Note: add-apt-repository would be nice for RPM platforms too - so when we
|
# Note: add-apt-repository would be nice for RPM platforms too - so when we
|
||||||
# need something like it, create a wrapper in dpkg/bin and fedora/bin.
|
# need something like it, create a wrapper in dpkg/bin and fedora/bin.
|
||||||
apt-get -y update
|
apt-get -y update
|
||||||
|
@ -2,8 +2,6 @@
|
|||||||
set -eux
|
set -eux
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
DISTRO=`lsb_release -si` || true
|
if [ "opensuse" = "$DISTRO_NAME" ]; then
|
||||||
|
|
||||||
if [ "openSUSE project" = "$DISTRO" ]; then
|
|
||||||
install-packages dhcp-client
|
install-packages dhcp-client
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user