aboutsummaryrefslogtreecommitdiff
path: root/nixops/scripts/pull_environment
diff options
context:
space:
mode:
Diffstat (limited to 'nixops/scripts/pull_environment')
-rwxr-xr-xnixops/scripts/pull_environment13
1 files changed, 13 insertions, 0 deletions
diff --git a/nixops/scripts/pull_environment b/nixops/scripts/pull_environment
new file mode 100755
index 0000000..e508a2e
--- /dev/null
+++ b/nixops/scripts/pull_environment
@@ -0,0 +1,13 @@
1#!/bin/bash
2
3if [ -z "$NIXOPS_CONFIG_PASS_SUBTREE_PATH" ]; then
4 echo "Please set NIXOPS_CONFIG_PASS_SUBTREE_PATH to the password-store subtree path"
5 exit 1;
6fi
7
8if [ -z "$NIXOPS_CONFIG_PASS_SUBTREE_REMOTE" ]; then
9 echo "Please set NIXOPS_CONFIG_PASS_SUBTREE_REMOTE to the password-store subtree remote name"
10 exit 1;
11fi
12
13pass git subtree pull --prefix=$NIXOPS_CONFIG_PASS_SUBTREE_PATH $NIXOPS_CONFIG_PASS_SUBTREE_REMOTE master