aboutsummaryrefslogtreecommitdiff
path: root/nixops/scripts/setup
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2020-09-04 02:40:24 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2020-09-04 02:59:46 +0200
commit34abd6afa44c620a56416bd423a2438a09bd1ce4 (patch)
treeb7eef613348fcb9d8fabd19c0437430c30678152 /nixops/scripts/setup
parentf5cbc6f767ee234e9cdd53baa113d5ab26edb6d8 (diff)
downloadNix-34abd6afa44c620a56416bd423a2438a09bd1ce4.tar.gz
Nix-34abd6afa44c620a56416bd423a2438a09bd1ce4.tar.zst
Nix-34abd6afa44c620a56416bd423a2438a09bd1ce4.zip
Migrate to morph as a replacement to nixops
The deployment tasks are now independent of any state
Diffstat (limited to 'nixops/scripts/setup')
-rwxr-xr-xnixops/scripts/setup16
1 files changed, 0 insertions, 16 deletions
diff --git a/nixops/scripts/setup b/nixops/scripts/setup
index 22f43ce..e161e43 100755
--- a/nixops/scripts/setup
+++ b/nixops/scripts/setup
@@ -2,8 +2,6 @@
2 2
3set -euo pipefail 3set -euo pipefail
4 4
5MAKEFILE_DIR="$( cd "$( dirname $( dirname "${BASH_SOURCE[0]}" ))" >/dev/null 2>&1 && pwd )"
6
7if ! which nix 2>/dev/null >/dev/null; then 5if ! which nix 2>/dev/null >/dev/null; then
8 cat <<-EOF 6 cat <<-EOF
9 nix is needed, please install it: 7 nix is needed, please install it:
@@ -62,20 +60,6 @@ if nix show-config --json | jq -e '.sandbox.value == "true"' >/dev/null; then
62 read y 60 read y
63fi 61fi
64 62
65if ! make -C $MAKEFILE_DIR deployment_is_set 2>/dev/null >/dev/null; then
66 cat <<-EOF
67 Importing deployment file into nixops:
68 Continue? [y/N]
69 EOF
70 read y
71 if [ "$y" = "y" -o "$y" = "Y" ]; then
72 make -C $MAKEFILE_DIR pull_deployment
73 else
74 echo "Aborting"
75 exit 1
76 fi
77fi
78
79cat <<-EOF 63cat <<-EOF
80 All set up. 64 All set up.
81 Please make sure you’re using make commands when deploying 65 Please make sure you’re using make commands when deploying