aboutsummaryrefslogtreecommitdiff
path: root/nixops/scripts/setup
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2019-05-24 14:43:09 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2019-05-24 14:45:37 +0200
commitdbcba2ea2b7301aaa7e6487c2589b09ef09ba066 (patch)
treeb4cd4b064468840e96757a55adbe9fd57a9d7904 /nixops/scripts/setup
parentdb4f87d640a090c4b469595737503f4189923c45 (diff)
downloadNix-dbcba2ea2b7301aaa7e6487c2589b09ef09ba066.tar.gz
Nix-dbcba2ea2b7301aaa7e6487c2589b09ef09ba066.tar.zst
Nix-dbcba2ea2b7301aaa7e6487c2589b09ef09ba066.zip
Reorganize files
Diffstat (limited to 'nixops/scripts/setup')
-rwxr-xr-xnixops/scripts/setup6
1 files changed, 3 insertions, 3 deletions
diff --git a/nixops/scripts/setup b/nixops/scripts/setup
index 72b19c0..cc03482 100755
--- a/nixops/scripts/setup
+++ b/nixops/scripts/setup
@@ -94,7 +94,7 @@ if nix show-config --json | jq -e '.sandbox.value == "true"' >/dev/null; then
94fi 94fi
95 95
96DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" 96DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
97source $(dirname $(dirname $DIR))/nix_path_env 97source $(dirname $(dirname $DIR))/scripts/nix_env
98export NIXOPS_STATE="$(dirname $DIR)/state/eldiron.nixops" 98export NIXOPS_STATE="$(dirname $DIR)/state/eldiron.nixops"
99export NIXOPS_DEPLOYMENT="$DeploymentUuid" 99export NIXOPS_DEPLOYMENT="$DeploymentUuid"
100 100
@@ -107,14 +107,14 @@ if ! nixops_custom info 2>/dev/null >/dev/null; then
107 if [ "$y" = "y" -o "$y" = "Y" ]; then 107 if [ "$y" = "y" -o "$y" = "Y" ]; then
108 deployment=$(pass show $NIXOPS_CONFIG_PASS_SUBTREE_PATH/Nixops/Deployment) 108 deployment=$(pass show $NIXOPS_CONFIG_PASS_SUBTREE_PATH/Nixops/Deployment)
109 echo "$deployment" | nixops_custom import 109 echo "$deployment" | nixops_custom import
110
111 nixops_custom modify "$(dirname $DIR)/eldiron.nix"
112 else 110 else
113 echo "Aborting" 111 echo "Aborting"
114 exit 1 112 exit 1
115 fi 113 fi
116fi 114fi
117 115
116nixops_custom modify "$(dirname $DIR)/default.nix"
117
118cat <<-EOF 118cat <<-EOF
119 All set up. 119 All set up.
120 Please make sure you’re using scripts/nixops_wrap when deploying 120 Please make sure you’re using scripts/nixops_wrap when deploying