diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-04-27 14:36:33 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-04-27 14:36:33 +0200 |
commit | 11234d0798eeb56b2a09bfc66925e782ace465e3 (patch) | |
tree | a0f00c1f7b9b9aaa168763339dc703e0fc5569dc /nixops/scripts/pull_deployment | |
parent | 941bfb6ff039b6bfd94cc5aec8a0ef6dd1b82f36 (diff) | |
download | Nix-11234d0798eeb56b2a09bfc66925e782ace465e3.tar.gz Nix-11234d0798eeb56b2a09bfc66925e782ace465e3.tar.zst Nix-11234d0798eeb56b2a09bfc66925e782ace465e3.zip |
Source environemnt before building nixops in scripts
Diffstat (limited to 'nixops/scripts/pull_deployment')
-rwxr-xr-x | nixops/scripts/pull_deployment | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nixops/scripts/pull_deployment b/nixops/scripts/pull_deployment index d238434..2fc07bc 100755 --- a/nixops/scripts/pull_deployment +++ b/nixops/scripts/pull_deployment | |||
@@ -8,6 +8,7 @@ if [ -z "$NIXOPS_CONFIG_PASS_SUBTREE_PATH" ]; then | |||
8 | fi | 8 | fi |
9 | 9 | ||
10 | DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" | 10 | DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" |
11 | source $(dirname $(dirname $DIR))/nix_path_env | ||
11 | nixops="$(nix-build --no-out-link -A nixops "$(dirname $(dirname $DIR))")/bin/nixops" | 12 | nixops="$(nix-build --no-out-link -A nixops "$(dirname $(dirname $DIR))")/bin/nixops" |
12 | export NIXOPS_STATE="$(dirname $DIR)/state/eldiron.nixops" | 13 | export NIXOPS_STATE="$(dirname $DIR)/state/eldiron.nixops" |
13 | 14 | ||