Update OpenBSD IS_PKGMIRROR check

This commit is contained in:
Tristan 2019-03-11 16:32:58 +01:00
parent 2815c211f4
commit 5be38dc4f5
1 changed files with 4 additions and 1 deletions

View File

@ -940,7 +940,10 @@ if [ `uname -s` == "OpenBSD" ]; then
fi
if [ "$IS_PKGMIRROR" = 1 ]; then
grep -qE "^export PKG_PATH=http://ftp\.fr\.openbsd\.org/pub/OpenBSD/[0-9.]+/packages/[a-z0-9]+/$" /root/.profile || echo 'IS_PKGMIRROR FAILED!'
grep -qE "^https://cdn\.openbsd\.org/pub/OpenBSD" /etc/installurl || echo 'IS_PKGMIRROR FAILED!'
if [[ "$VERBOSE" == 1 ]]; then
echo "Check whether the right repo is present in the /etc/installurl file"
fi
fi
if [ "$IS_HISTORY" = 1 ]; then