aboutsummaryrefslogtreecommitdiff
path: root/scripts/nix-profile.sh.in
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2016-02-12 13:26:19 +0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2016-02-16 10:15:05 +0100
commit92063851b1c49a5c96cf86b0b61d840dfe155964 (patch)
tree4cc337ea19039fa3d6bd7d308518e7624d2f5cd5 /scripts/nix-profile.sh.in
parenteff5021eaa6dc69f65ea1a8abe8f3ab11ef5eb0a (diff)
nix-profile.sh.in: find ca-bundle.pem on openSUSE Tumbleweed machines
Diffstat (limited to 'scripts/nix-profile.sh.in')
-rw-r--r--scripts/nix-profile.sh.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/nix-profile.sh.in b/scripts/nix-profile.sh.in
index 6e70b81df..6616b12b0 100644
--- a/scripts/nix-profile.sh.in
+++ b/scripts/nix-profile.sh.in
@@ -23,6 +23,8 @@ if [ -n "$HOME" ]; then
# Set $SSL_CERT_FILE so that Nixpkgs applications like curl work.
if [ -e /etc/ssl/certs/ca-certificates.crt ]; then # NixOS, Ubuntu, Debian, Gentoo, Arch
export SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt
+ elif [ -e /etc/ssl/ca-bundle.pem ]; then # openSUSE Tumbleweed
+ export SSL_CERT_FILE=/etc/ssl/ca-bundle.pem
elif [ -e /etc/ssl/certs/ca-bundle.crt ]; then # Old NixOS
export SSL_CERT_FILE=/etc/ssl/certs/ca-bundle.crt
elif [ -e /etc/pki/tls/certs/ca-bundle.crt ]; then # Fedora, CentOS