xbps-static-custom: Fixed security certificate verification
This commit is contained in:
parent
593b6ae5ca
commit
ec590bb265
|
@ -2,5 +2,8 @@ case "${ACTION}" in
|
|||
post)
|
||||
chown root:xbuilder usr/bin/xbps-uchroot.static
|
||||
chmod 4750 usr/bin/xbps-uchroot.static
|
||||
|
||||
# Fix certificate verification issue
|
||||
ln -s /etc/ssl/certs.pem /etc/ssl/cert.pem
|
||||
;;
|
||||
esac
|
||||
|
|
|
@ -5,13 +5,4 @@ Since most users use the dynamically linked version, it's recommended to create
|
|||
# ln -s /usr/bin/xbps-install.static /usr/local/bin/xbps-install
|
||||
$ ln -s /usr/bin/xbps-install.static "$HOME"/.local/bin/xbps-install
|
||||
|
||||
To correct the certificate verification problem, do either of the following two suggestions:
|
||||
|
||||
# echo "export SSL_CA_CERT_FILE=/etc/ssl/certs.pem" >> /etc/profile
|
||||
$ echo "export SSL_CA_CERT_FILE=/etc/ssl/certs.pem" >> "$HOME"/.profile
|
||||
|
||||
Once you have done the above, restart the session for the change to take effect.
|
||||
|
||||
NOTE:
|
||||
The first option will be effective for the entire system and will work for all users who use the computer.
|
||||
The second option will only work for the current user session.
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
case "${ACTION}" in
|
||||
pre)
|
||||
unlink /etc/ssl/cert.pem
|
||||
;;
|
||||
esac
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'xbps-static' xtraeme version
|
||||
pkgname=xbps-static
|
||||
version=21.1
|
||||
revision=3
|
||||
revision=4
|
||||
# only musl
|
||||
archs="*-musl"
|
||||
wrksrc="xbps-${version}"
|
||||
|
|
Loading…
Reference in New Issue