mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-04-15 22:00:06 -04:00
CI: Fallback on software-properties-common
This commit is contained in:
parent
b3e066a82e
commit
483ae9fca4
1 changed files with 11 additions and 6 deletions
17
.github/prepare_debian.sh
vendored
17
.github/prepare_debian.sh
vendored
|
|
@ -5,13 +5,18 @@ set -e
|
|||
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
sed "s/main/non-free contrib/g" /etc/apt/sources.list.d/debian.sources > /etc/apt/sources.list.d/debian-nonfree.sources
|
||||
apt-get update
|
||||
apt-get -y install software-properties-common
|
||||
if [ $(lsb_release -is) = "Debian" ]; then
|
||||
apt-add-repository non-free
|
||||
apt-get update
|
||||
source /etc/os-release
|
||||
|
||||
if [ ${ID} = "debian" ]; then
|
||||
if [ -f /etc/apt/sources.list.d/debian.sources ]; then
|
||||
sed "s/main/non-free contrib/g" /etc/apt/sources.list.d/debian.sources > /etc/apt/sources.list.d/debian-nonfree.sources
|
||||
else
|
||||
apt-get update
|
||||
apt-get -y install software-properties-common
|
||||
apt-add-repository non-free
|
||||
fi
|
||||
fi
|
||||
apt-get update
|
||||
apt-get -y install perl \
|
||||
autotools-dev \
|
||||
libdbi-dev \
|
||||
|
|
|
|||
Loading…
Reference in a new issue