krebs.nixos-install: cacert -> /root/SSL_CERT_FILE

This commit is contained in:
tv 2015-10-22 00:49:51 +02:00
parent 4b8ffc1bfd
commit df6f0392cb

View File

@ -146,8 +146,8 @@ let out = {
)} )}
cacert=$(findpkg cacert) cacert=$(findpkg cacert)
coreutils=$(findpkg coreutils) coreutils=$(findpkg coreutils)
env="$coreutils/bin/env \ cp "$cacert"/etc/ssl/certs/ca-bundle.crt /mnt/root/SSL_CERT_FILE
SSL_CERT_FILE=$cacert/etc/ssl/certs/ca-bundle.crt" env="$coreutils/bin/env SSL_CERT_FILE=/root/SSL_CERT_FILE"
sed -i ' sed -i '
s:^NIX_PATH=:chroot $mountPoint '"$env"' &: s:^NIX_PATH=:chroot $mountPoint '"$env"' &:
s:^nix-env:'"$nix_env"': s:^nix-env:'"$nix_env"':