[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
358/376: Install cacert before running nix-channel
From: |
Ludovic Courtès |
Subject: |
358/376: Install cacert before running nix-channel |
Date: |
Wed, 28 Jan 2015 22:06:10 +0000 |
civodul pushed a commit to tag 1.8
in repository guix.
commit c2a552b0759b5b09223dbff41f968283cdcb7ed3
Author: Eelco Dolstra <address@hidden>
Date: Sat Dec 13 16:53:21 2014 +0100
Install cacert before running nix-channel
Also, make it more robust against incorrent SSL_CERT_FILE values.
---
scripts/install-nix-from-closure.sh | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/scripts/install-nix-from-closure.sh
b/scripts/install-nix-from-closure.sh
index 9977dca..c9ba9a2 100644
--- a/scripts/install-nix-from-closure.sh
+++ b/scripts/install-nix-from-closure.sh
@@ -72,6 +72,12 @@ if ! $nix/bin/nix-env -i "$nix"; then
exit 1
fi
+# Install an SSL certificate bundle.
+if [ -z "$SSL_CERT_FILE" -o ! -f "$SSL_CERT_FILE" ]; then
+ $nix/bin/nix-env -i "$cacert"
+ export SSL_CERT_FILE="$HOME/.nix-profile/etc/ca-bundle.crt"
+fi
+
# Subscribe the user to the Nixpkgs channel and fetch it.
if ! $nix/bin/nix-channel --list | grep -q "^nixpkgs "; then
$nix/bin/nix-channel --add https://nixos.org/channels/nixpkgs-unstable
@@ -80,11 +86,6 @@ if [ -z "$_NIX_INSTALLER_TEST" ]; then
$nix/bin/nix-channel --update nixpkgs
fi
-# Install an SSL certificate bundle.
-if [ -z "$SSL_CERT_FILE" ]; then
- $nix/bin/nix-env -i "$cacert"
-fi
-
# Make the shell source nix.sh during login.
p=$NIX_LINK/etc/profile.d/nix.sh
- 348/376: Remove dead code, (continued)
- 348/376: Remove dead code, Ludovic Courtès, 2015/01/28
- 350/376: Doh, Ludovic Courtès, 2015/01/28
- 338/376: Don't wait for PID -1, Ludovic Courtès, 2015/01/28
- 352/376: Get rid of unnecessary "interrupted by the user" message with -vvv, Ludovic Courtès, 2015/01/28
- 353/376: Don't abort if we get a signal while waiting for the pager, Ludovic Courtès, 2015/01/28
- 351/376: Remove chatty message, Ludovic Courtès, 2015/01/28
- 356/376: Shut up a Valgrind warning, Ludovic Courtès, 2015/01/28
- 349/376: Remove tabs, Ludovic Courtès, 2015/01/28
- 355/376: Fix some memory leaks, Ludovic Courtès, 2015/01/28
- 357/376: Silence some warnings on GCC 4.9, Ludovic Courtès, 2015/01/28
- 358/376: Install cacert before running nix-channel,
Ludovic Courtès <=
- 359/376: Better error message, Ludovic Courtès, 2015/01/28
- 362/376: Undocument nix-generate-patches, Ludovic Courtès, 2015/01/28
- 367/376: Fix image in PDF, Ludovic Courtès, 2015/01/28
- 354/376: Ensure we're writing to stderr in the builder, Ludovic Courtès, 2015/01/28
- 360/376: Style, Ludovic Courtès, 2015/01/28
- 365/376: Update .nixpkg description, Ludovic Courtès, 2015/01/28
- 366/376: Rename files, Ludovic Courtès, 2015/01/28
- 371/376: Merge commit '36c67860363c93eb00cf5b8e2ad34f6f775e6901', Ludovic Courtès, 2015/01/28
- 363/376: Style, Ludovic Courtès, 2015/01/28
- 376/376: Grmbl, Ludovic Courtès, 2015/01/28