mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-29 17:16:15 +02:00
prevent doing recursive chroots, by unsetting NIX_ROOT in the scripts.
This commit is contained in:
parent
1854f84e83
commit
f1947cce93
2 changed files with 4 additions and 0 deletions
|
@ -9,6 +9,7 @@ my $logFile = "@localstatedir@/log/nix/downloads";
|
||||||
|
|
||||||
open LOGFILE, ">>$logFile" or die "cannot open log file $logFile";
|
open LOGFILE, ">>$logFile" or die "cannot open log file $logFile";
|
||||||
|
|
||||||
|
delete $ENV{"NIX_ROOT"};
|
||||||
|
|
||||||
# Create a temporary directory.
|
# Create a temporary directory.
|
||||||
my $tmpDir;
|
my $tmpDir;
|
||||||
|
|
|
@ -3,6 +3,9 @@
|
||||||
url=$1
|
url=$1
|
||||||
expHash=$2
|
expHash=$2
|
||||||
|
|
||||||
|
# to prevent doing more than 1 chroot
|
||||||
|
unset NIX_ROOT
|
||||||
|
|
||||||
hashType=$NIX_HASH_ALGO
|
hashType=$NIX_HASH_ALGO
|
||||||
if test -z "$hashType"; then
|
if test -z "$hashType"; then
|
||||||
hashType=md5
|
hashType=md5
|
||||||
|
|
Loading…
Reference in a new issue