diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-04-20 09:07:08 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-04-20 09:07:08 +0200 |
commit | b9c11a4dfd5afab304503fd61efe773b5a0da6a7 (patch) | |
tree | d1d51f42ef8912492574cbfae3a1a47d02beb335 /nixops/scripts | |
parent | d07d139ae42fb2c4263c96167ca6ca67f562bbe9 (diff) | |
download | Nix-b9c11a4dfd5afab304503fd61efe773b5a0da6a7.tar.gz Nix-b9c11a4dfd5afab304503fd61efe773b5a0da6a7.tar.zst Nix-b9c11a4dfd5afab304503fd61efe773b5a0da6a7.zip |
Refresh environment before using it in setup
Diffstat (limited to 'nixops/scripts')
-rwxr-xr-x | nixops/scripts/setup | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nixops/scripts/setup b/nixops/scripts/setup index 81ba8aa..4a76d35 100755 --- a/nixops/scripts/setup +++ b/nixops/scripts/setup | |||
@@ -52,6 +52,9 @@ if ! pass $NIXOPS_CONFIG_PASS_SUBTREE_PATH > /dev/null 2>/dev/null; then | |||
52 | fi | 52 | fi |
53 | fi | 53 | fi |
54 | 54 | ||
55 | # Repull it before using it, just in case | ||
56 | pass git subtree pull --prefix=$NIXOPS_CONFIG_PASS_SUBTREE_PATH $NIXOPS_CONFIG_PASS_SUBTREE_REMOTE master | ||
57 | |||
55 | gpg_keys=$(pass ls $NIXOPS_CONFIG_PASS_SUBTREE_PATH/Nixops/GPGKeys | sed -e "1d" | cut -d" " -f2) | 58 | gpg_keys=$(pass ls $NIXOPS_CONFIG_PASS_SUBTREE_PATH/Nixops/GPGKeys | sed -e "1d" | cut -d" " -f2) |
56 | for key in $gpg_keys; do | 59 | for key in $gpg_keys; do |
57 | content=$(pass show $NIXOPS_CONFIG_PASS_SUBTREE_PATH/Nixops/GPGKeys/$key) | 60 | content=$(pass show $NIXOPS_CONFIG_PASS_SUBTREE_PATH/Nixops/GPGKeys/$key) |