diff --git a/CHANGELOG b/CHANGELOG index 767b520..ab295b1 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -5,6 +5,8 @@ and this project **does not adhere to [Semantic Versioning](http://semver.org/sp ### Added +* Check for bullseye security repository + ### Changed ### Deprecated diff --git a/evocheck.sh b/evocheck.sh index 02fa4a6..b5e3d9a 100755 --- a/evocheck.sh +++ b/evocheck.sh @@ -233,8 +233,19 @@ check_syslogconf() { || failed "IS_SYSLOGCONF" "syslog evolix config file missing" } check_debiansecurity() { - grep -q "^deb.*security" /etc/apt/sources.list \ - || failed "IS_DEBIANSECURITY" "missing debian security repository" + if is_debian_bullseye; then + # https://www.debian.org/releases/bullseye/amd64/release-notes/ch-information.html#security-archive + pattern="^deb https://deb\.debian\.org/debian-security bullseye-security main" + elif is_debian_buster; then + pattern="^deb http://security\.debian\.org/debian-security buster/updates main" + elif is_debian_stretch; then + pattern="^deb http://security\.debian\.org/debian-security stretch/updates main" + else + pattern="^deb.*security" + fi + + source_file="/etc/apt/sources.list" + grep -q "${pattern}" "${source_file}" || failed "IS_DEBIANSECURITY" "missing debian security repository" } check_aptitudeonly() { if is_debian_squeeze || is_debian_wheezy; then