Skip to content

Commit c661842

Browse files
committed
try .curlrc again
1 parent 76b58c5 commit c661842

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

config.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -297,11 +297,12 @@ function run_tests {
297297
URL='https://icdc.cen.uni-hamburg.de/thredds/dodsC/ftpthredds/hamtide/m2.hamtide11a.nc'
298298
if [ -z "$IS_MACOS" ]; then # only needed for Linux
299299
# these should work, but don't
300-
#echo "HTTP.SSL.CAINFO=/etc/ssl/certs/ca-certificates.crt" > .ncrc
300+
#echo "HTTP.SSL.CAINFO=/etc/ssl/certs/ca-certificates.crt" > $HOME/.ncrc
301301
#export CURL_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt
302+
echo "cacert=/etc/ssl/certs/ca-certificates.crt" > $HOME/.curlrc
302303
# this works
303-
mkdir -p /etc/pki/tls/certs
304-
ln /etc/ssl/certs/ca-certificates.crt /etc/pki/tls/certs/ca-bundle.crt
304+
#mkdir -p /etc/pki/tls/certs
305+
ln -s /etc/ssl/certs/ca-certificates.crt /etc/pki/tls/certs/ca-bundle.crt
305306
fi
306307
python -c "from netCDF4 import Dataset; nc=Dataset(\"${URL}\"); print(nc)"
307308
}

0 commit comments

Comments
 (0)