aboutsummaryrefslogtreecommitdiff
path: root/nixops/scripts/nixops_wrap
diff options
context:
space:
mode:
Diffstat (limited to 'nixops/scripts/nixops_wrap')
-rwxr-xr-xnixops/scripts/nixops_wrap7
1 files changed, 4 insertions, 3 deletions
diff --git a/nixops/scripts/nixops_wrap b/nixops/scripts/nixops_wrap
index e4f5dc5..e50b246 100755
--- a/nixops/scripts/nixops_wrap
+++ b/nixops/scripts/nixops_wrap
@@ -10,6 +10,10 @@ TEMP=$(mktemp -d /tmp/XXXXXX-nixops-files)
10chmod go-rwx $TEMP 10chmod go-rwx $TEMP
11 11
12DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" 12DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
13source $(dirname $(dirname $DIR))/nix_path_env
14# __noChroot: ssh-config-file requires relaxed
15export NIX_PATH="ssh-config-file=$(dirname $DIR)/ssh/config:$NIX_PATH"
16
13nixops="$(nix-build --no-out-link -A nixops "$(dirname $(dirname $DIR))")/bin/nixops" 17nixops="$(nix-build --no-out-link -A nixops "$(dirname $(dirname $DIR))")/bin/nixops"
14 18
15finish() { 19finish() {
@@ -30,7 +34,4 @@ for file in $files; do
30done 34done
31$nixops set-args --argstr privateFiles "$TEMP" 35$nixops set-args --argstr privateFiles "$TEMP"
32 36
33source $(dirname $(dirname $DIR))/nix_path_env
34# __noChroot: ssh-config-file requires relaxed
35export NIX_PATH="ssh-config-file=$(dirname $DIR)/ssh/config:$NIX_PATH"
36$nixops "$@" 37$nixops "$@"