From 4d952b1013e388cc11e1697fdc23e7f0a42cecd5 Mon Sep 17 00:00:00 2001 From: Jeremy Lecour Date: Thu, 4 Apr 2019 18:30:46 +0200 Subject: [PATCH] limit Samba check to lenny --- evocheck.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/evocheck.sh b/evocheck.sh index 3f6b7e2..16b7aab 100755 --- a/evocheck.sh +++ b/evocheck.sh @@ -788,9 +788,9 @@ if is_debian; then # Verification de la priorité du package samba si les backports sont utilisés if [ "$IS_SAMBAPINPRIORITY" = 1 ]; then - if is_pack_samba; then + if is_debian_lenny && is_pack_samba; then if grep -qrE "^[^#].*backport" /etc/apt/sources.list{,.d}; then - priority=$(grep -E -A2 "^Package:.*samba" /etc/apt/preferences | grep -A1 "^Pin: release a=.*-backports" | grep "^Pin-Priority:" | cut -f2 -d" ") + priority=$(grep -E -A2 "^Package:.*samba" /etc/apt/preferences | grep -A1 "^Pin: release a=lenny-backports" | grep "^Pin-Priority:" | cut -f2 -d" ") test "$priority" -gt 500 || failed "IS_SAMBAPINPRIORITY" fi fi