Revert "certctl: Set METALOG ownership to root:wheel"

This introduces a circular dependency because it requires an existing
dbdir for install -N, which might not yet exist.

I imagine we can use install -o 0 -g -0, avoiding the need for the
dbdir, but install emits uname=0 gname=0 rather than uid=0 gid=0.
So just revert for now pending a full fix.

This reverts commit 10fa3f2518.

PR:		283340
Event:		January 2025 Bug-busting session
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Ed Maste 2025-01-17 12:49:01 -05:00
parent 72f092ee01
commit 98bebc20ce

View file

@ -334,7 +334,7 @@ fi
: ${METALOG:=${DESTDIR}/METALOG}
INSTALLFLAGS=
if "$UNPRIV" ; then
INSTALLFLAGS="-U -M ${METALOG} -D ${DESTDIR} -N ${DESTDIR}${DISTBASE}/etc -o root -g wheel"
INSTALLFLAGS="-U -M ${METALOG} -D ${DESTDIR}"
fi
: ${LOCALBASE:=$(sysctl -n user.localbase)}
: ${TRUSTPATH:=${DESTDIR}${DISTBASE}/usr/share/certs/trusted:${DESTDIR}${LOCALBASE}/share/certs:${DESTDIR}${LOCALBASE}/etc/ssl/certs}