check_pkgmirror: use our own openbsd mirror

This commit is contained in:
Jérémy Dubois 2022-11-28 14:52:34 +01:00
parent 8fd10bfeaf
commit f7570ec865
2 changed files with 8 additions and 2 deletions

View file

@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased] ## [Unreleased]
## [22.11] - 2022-11-28
### Changed
- check_pkgmirror: use our own openbsd mirror
## [22.10] - 2022-10-14 ## [22.10] - 2022-10-14
### Changed ### Changed

View file

@ -3,7 +3,7 @@
# EvoCheck # EvoCheck
# Script to verify compliance of an OpenBSD server powered by Evolix # Script to verify compliance of an OpenBSD server powered by Evolix
readonly VERSION="22.10" readonly VERSION="22.11"
# base functions # base functions
@ -194,7 +194,7 @@ check_wheel(){
fi fi
} }
check_pkgmirror(){ check_pkgmirror(){
grep -qE "^https://cdn\.openbsd\.org/pub/OpenBSD" /etc/installurl || failed "IS_PKGMIRROR" "Check whether the right repo is present in the /etc/installurl file" grep -qE "^https?://ftp\.evolix\.org/openbsd/" /etc/installurl || failed "IS_PKGMIRROR" "Check whether the right repo is present in the /etc/installurl file"
} }
check_history(){ check_history(){
file=/root/.profile file=/root/.profile