certctl: replace hardcoded uses of /usr/local
Use the new user.localbase sysctl here as well, to reduce the number of hardcoded localbase by one (1). MFC after: 3 days (note: just use a literal /usr/local default)
This commit is contained in:
parent
e83fdf8bb3
commit
b799d38a2a
@ -264,8 +264,9 @@ shift $(( $OPTIND - 1 ))
|
|||||||
: ${METALOG:=${DESTDIR}/METALOG}
|
: ${METALOG:=${DESTDIR}/METALOG}
|
||||||
INSTALLFLAGS=
|
INSTALLFLAGS=
|
||||||
[ $UNPRIV -eq 1 ] && INSTALLFLAGS="-U -M ${METALOG} -D ${DESTDIR}"
|
[ $UNPRIV -eq 1 ] && INSTALLFLAGS="-U -M ${METALOG} -D ${DESTDIR}"
|
||||||
: ${TRUSTPATH:=${DESTDIR}/usr/share/certs/trusted:${DESTDIR}/usr/local/share/certs:${DESTDIR}/usr/local/etc/ssl/certs}
|
: ${LOCALBASE:=$(sysctl -n user.localbase)}
|
||||||
: ${BLACKLISTPATH:=${DESTDIR}/usr/share/certs/blacklisted:${DESTDIR}/usr/local/etc/ssl/blacklisted}
|
: ${TRUSTPATH:=${DESTDIR}/usr/share/certs/trusted:${DESTDIR}${LOCALBASE}/share/certs:${DESTDIR}${LOCALBASE}/etc/ssl/certs}
|
||||||
|
: ${BLACKLISTPATH:=${DESTDIR}/usr/share/certs/blacklisted:${DESTDIR}${LOCALBASE}/etc/ssl/blacklisted}
|
||||||
: ${CERTDESTDIR:=${DESTDIR}/etc/ssl/certs}
|
: ${CERTDESTDIR:=${DESTDIR}/etc/ssl/certs}
|
||||||
: ${BLACKLISTDESTDIR:=${DESTDIR}/etc/ssl/blacklisted}
|
: ${BLACKLISTDESTDIR:=${DESTDIR}/etc/ssl/blacklisted}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user