1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-11-22 09:33:01 +01:00

fix: add ca-certificates support for termux in run_toxic.sh

This commit is contained in:
Tha_14 2023-11-15 11:07:40 +02:00 committed by GitHub
parent 30d01127e7
commit d3c4008b59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -277,6 +277,7 @@ echo '#!/usr/bin/env sh
DEBIAN_SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt
RHEL_SSL_CERT_FILE=/etc/pki/tls/certs/ca-bundle.crt
OPENSUSE_CERT_FILE=/etc/ssl/ca-bundle.pem
TERMUX_CERT_FILE=/data/data/com.termux/files/usr/etc/tls/cert.pem
if [ ! -f "$SSL_CERT_FILE" ] ; then
if [ -f "$DEBIAN_SSL_CERT_FILE" ] ; then
@ -285,6 +286,8 @@ if [ ! -f "$SSL_CERT_FILE" ] ; then
SSL_CERT_FILE="$RHEL_SSL_CERT_FILE"
elif [ -f "$OPENSUSE_CERT_FILE" ] ; then
SSL_CERT_FILE="$OPENSUSE_CERT_FILE"
elif [ -f "$TERMUX_CERT_FILE" ] ; then
SSL_CERT_FILE="$TERMUX_CERT_FILE"
fi
fi