upgrade: verify pkgbase

This commit is contained in:
tschettervictor
2025-11-07 16:04:13 -07:00
committed by GitHub
parent e90773cfe9
commit 56fecc6203

View File

@@ -296,7 +296,7 @@ else
else
FREEBSD_BRANCH="release"
fi
if [ "${NEW_MAJOR_VERSION}" -ge 16 ] || pkg -r "${bastille_jailsdir}/${TARGET}/root" -N 2>/dev/null; then
if [ "${NEW_MAJOR_VERSION}" -ge 16 ] || pkg -r "${bastille_jailsdir}/${TARGET}/root" which /usr/bin/uname > /dev/null 2>&1; then
PKGBASE=1
fi
if [ "${PKGBASE}" -eq 1 ]; then