diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-02-01 11:06:44 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-02-01 11:09:08 +0100 |
commit | 9f5da6d7e9dbde93330f8c69ccdee9fac643696e (patch) | |
tree | 1b6cf6f8dfcedeb4d932ff0f62a3efe8bf3e5c78 /nixops/scripts/nixops_wrap | |
parent | 5f5efa6fa5a5b7d299998be410a278a7ff396504 (diff) | |
download | Nix-9f5da6d7e9dbde93330f8c69ccdee9fac643696e.tar.gz Nix-9f5da6d7e9dbde93330f8c69ccdee9fac643696e.tar.zst Nix-9f5da6d7e9dbde93330f8c69ccdee9fac643696e.zip |
Add setup script
Diffstat (limited to 'nixops/scripts/nixops_wrap')
-rwxr-xr-x | nixops/scripts/nixops_wrap | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nixops/scripts/nixops_wrap b/nixops/scripts/nixops_wrap index c23d308..1efe8a9 100755 --- a/nixops/scripts/nixops_wrap +++ b/nixops/scripts/nixops_wrap | |||
@@ -1,7 +1,7 @@ | |||
1 | #!/bin/bash | 1 | #!/bin/bash |
2 | 2 | ||
3 | if [ -z "$NIXOPS_CONFIG_PASS_PATH" ]; then | 3 | if [ -z "$NIXOPS_CONFIG_PASS_SUBTREE_PATH" ]; then |
4 | echo "Please set NIXOPS_CONFIG_PASS_PATH to the password-store environment file path" | 4 | echo "Please set NIXOPS_CONFIG_PASS_SUBTREE_PATH to the password-store subtree path" |
5 | exit 1; | 5 | exit 1; |
6 | fi | 6 | fi |
7 | 7 | ||
@@ -15,7 +15,7 @@ finish() { | |||
15 | 15 | ||
16 | trap finish EXIT | 16 | trap finish EXIT |
17 | 17 | ||
18 | pass show "$NIXOPS_CONFIG_PASS_PATH" >> $TEMP | 18 | pass show "$NIXOPS_CONFIG_PASS_SUBTREE_PATH/NixConfig" >> $TEMP |
19 | nixops set-args --argstr environment "$TEMP" | 19 | nixops set-args --argstr environment "$TEMP" |
20 | 20 | ||
21 | nixops "$@" | 21 | nixops "$@" |