mirror of
https://git.suyu.dev/suyu/AppImageKit-checkrt.git
synced 2025-12-22 05:36:15 +01:00
AppRun.sh: Search for root CA file on system
This commit is contained in:
parent
b720c12e6a
commit
72b7ae1ba6
1 changed files with 11 additions and 0 deletions
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}"
|
export LD_LIBRARY_PATH="${cxxpath}${gccpath}${LD_LIBRARY_PATH}"
|
||||||
fi
|
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_LIBRARY_PATH"
|
||||||
#echo ">>>>> $LD_PRELOAD"
|
#echo ">>>>> $LD_PRELOAD"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue