mirror of
https://git.suyu.dev/suyu/AppImageKit-checkrt.git
synced 2024-06-02 19:37:19 -04:00
AppRun.sh: Search for root CA file on system
This commit is contained in:
parent
b720c12e6a
commit
72b7ae1ba6
11
AppRun.sh
11
AppRun.sh
|
@ -42,6 +42,17 @@ if [ -n "$cxxpath" ] || [ -n "$gccpath" ]; then
|
|||
export LD_LIBRARY_PATH="${cxxpath}${gccpath}${LD_LIBRARY_PATH}"
|
||||
fi
|
||||
|
||||
# Find correct root CA file
|
||||
POSSIBLE_CERTIFICATES="/etc/ssl/certs/ca-bundle.crt /etc/ssl/certs/ca-certificates.crt"
|
||||
if [ -z "$SSL_CERT_FILE" ]; then
|
||||
for i in $POSSIBLE_CERTIFICATES; do
|
||||
if [ -f "$i" ]; then
|
||||
export SSL_CERT_FILE="$i"
|
||||
break
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
#echo ">>>>> $LD_LIBRARY_PATH"
|
||||
#echo ">>>>> $LD_PRELOAD"
|
||||
|
||||
|
|
Loading…
Reference in a new issue