1
0
Fork 0
mirror of https://github.com/librenms/docker.git synced 2026-01-23 02:14:48 +00:00

respect CURL_CA_BUNDLE in PHP env as well as when calling curl CLI directly

This commit is contained in:
Nash Kaminski 2024-03-21 21:33:36 +00:00
parent 74d179c244
commit 4864cfa672

View file

@ -70,6 +70,10 @@ echo "Setting PHP INI configuration..."
sed -i "s|memory_limit.*|memory_limit = ${MEMORY_LIMIT}|g" /etc/php83/php.ini
sed -i "s|;date\.timezone.*|date\.timezone = ${TZ}|g" /etc/php83/php.ini
sed -i "s|;max_input_vars.*|max_input_vars = ${MAX_INPUT_VARS}|g" /etc/php83/php.ini
if [ -n "${CURL_CA_BUNDLE}" ]; then
echo "Setting PHP CA bundle path override..."
sed -i "s|;openssl\.cafile.*|openssl.cafile = ${CURL_CA_BUNDLE}|g" /etc/php83/php.ini
fi
# OpCache
echo "Setting OpCache configuration..."