aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2019-04-20 09:07:08 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2019-04-20 09:07:08 +0200
commitb9c11a4dfd5afab304503fd61efe773b5a0da6a7 (patch)
treed1d51f42ef8912492574cbfae3a1a47d02beb335
parentd07d139ae42fb2c4263c96167ca6ca67f562bbe9 (diff)
downloadNix-b9c11a4dfd5afab304503fd61efe773b5a0da6a7.tar.gz
Nix-b9c11a4dfd5afab304503fd61efe773b5a0da6a7.tar.zst
Nix-b9c11a4dfd5afab304503fd61efe773b5a0da6a7.zip
Refresh environment before using it in setup
-rwxr-xr-xnixops/scripts/setup3
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
53fi 53fi
54 54
55# Repull it before using it, just in case
56pass git subtree pull --prefix=$NIXOPS_CONFIG_PASS_SUBTREE_PATH $NIXOPS_CONFIG_PASS_SUBTREE_REMOTE master
57
55gpg_keys=$(pass ls $NIXOPS_CONFIG_PASS_SUBTREE_PATH/Nixops/GPGKeys | sed -e "1d" | cut -d" " -f2) 58gpg_keys=$(pass ls $NIXOPS_CONFIG_PASS_SUBTREE_PATH/Nixops/GPGKeys | sed -e "1d" | cut -d" " -f2)
56for key in $gpg_keys; do 59for 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)