forked from rarias/bscpkgs
Move index and out inside the user directory
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
with garlicTools;
|
||||
|
||||
let
|
||||
garlicOut = "/mnt/garlic/out";
|
||||
garlicPrefix = "/mnt/garlic";
|
||||
garlicTemp = "/tmp/garlic";
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
@@ -22,7 +22,7 @@ in
|
||||
|
||||
src = ./.;
|
||||
|
||||
inherit garlicOut garlicTemp sshHost;
|
||||
inherit garlicPrefix garlicTemp sshHost;
|
||||
|
||||
installPhase = ''
|
||||
substituteAllInPlace garlic
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
#!/bin/bash -e
|
||||
|
||||
garlicOut=@garlicOut@
|
||||
garlicPrefix=@garlicPrefix@
|
||||
garlicTemp=@garlicTemp@
|
||||
sshHost=@sshHost@
|
||||
PATH=@PATH@
|
||||
@@ -61,7 +61,7 @@ checkExperiment() {
|
||||
do_fetch() {
|
||||
expName=$(basename $experiment)
|
||||
user=$(ssh -G "$sshHost" | awk '/^user /{print $2}')
|
||||
exp=$garlicOut/$user/$expName
|
||||
exp=$garlicPrefix/$user/out/$expName
|
||||
|
||||
if [ ! -e "$exp" ]; then
|
||||
echo "missing experiment: $exp"
|
||||
|
||||
Reference in New Issue
Block a user