aboutsummaryrefslogtreecommitdiff
path: root/nixops/scripts/nixops_wrap
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2019-02-01 11:06:44 +0100
committerIsmaël Bouya <ismael.bouya@normalesup.org>2019-02-01 11:09:08 +0100
commit9f5da6d7e9dbde93330f8c69ccdee9fac643696e (patch)
tree1b6cf6f8dfcedeb4d932ff0f62a3efe8bf3e5c78 /nixops/scripts/nixops_wrap
parent5f5efa6fa5a5b7d299998be410a278a7ff396504 (diff)
downloadNix-9f5da6d7e9dbde93330f8c69ccdee9fac643696e.tar.gz
Nix-9f5da6d7e9dbde93330f8c69ccdee9fac643696e.tar.zst
Nix-9f5da6d7e9dbde93330f8c69ccdee9fac643696e.zip
Add setup script
Diffstat (limited to 'nixops/scripts/nixops_wrap')
-rwxr-xr-xnixops/scripts/nixops_wrap6
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
3if [ -z "$NIXOPS_CONFIG_PASS_PATH" ]; then 3if [ -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;
6fi 6fi
7 7
@@ -15,7 +15,7 @@ finish() {
15 15
16trap finish EXIT 16trap finish EXIT
17 17
18pass show "$NIXOPS_CONFIG_PASS_PATH" >> $TEMP 18pass show "$NIXOPS_CONFIG_PASS_SUBTREE_PATH/NixConfig" >> $TEMP
19nixops set-args --argstr environment "$TEMP" 19nixops set-args --argstr environment "$TEMP"
20 20
21nixops "$@" 21nixops "$@"