forked from evolix/evocheck
Check for bullseye security repository
This commit is contained in:
parent
b5a467b82f
commit
7740e919a5
|
@ -5,6 +5,8 @@ and this project **does not adhere to [Semantic Versioning](http://semver.org/sp
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
||||||
|
* Check for bullseye security repository
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
### Deprecated
|
### Deprecated
|
||||||
|
|
15
evocheck.sh
15
evocheck.sh
|
@ -233,8 +233,19 @@ check_syslogconf() {
|
||||||
|| failed "IS_SYSLOGCONF" "syslog evolix config file missing"
|
|| failed "IS_SYSLOGCONF" "syslog evolix config file missing"
|
||||||
}
|
}
|
||||||
check_debiansecurity() {
|
check_debiansecurity() {
|
||||||
grep -q "^deb.*security" /etc/apt/sources.list \
|
if is_debian_bullseye; then
|
||||||
|| failed "IS_DEBIANSECURITY" "missing debian security repository"
|
# 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() {
|
check_aptitudeonly() {
|
||||||
if is_debian_squeeze || is_debian_wheezy; then
|
if is_debian_squeeze || is_debian_wheezy; then
|
||||||
|
|
Loading…
Reference in a new issue