unoverse 0.1.56 → 0.1.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/operator/lib/deploy.sh +12 -6
- package/package.json +1 -1
package/operator/lib/deploy.sh
CHANGED
|
@@ -35,12 +35,18 @@ cmd_deploy() {
|
|
|
35
35
|
pick_option "DigitalOcean" "AWS"
|
|
36
36
|
[ "$PICKED" = "1" ] && cloud=aws || cloud=digitalocean
|
|
37
37
|
echo ""
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
38
|
+
# An existing tfvars is PROGRESS, not a conflict: the previous run wrote it. Only
|
|
39
|
+
# a missing file needs the ground; either way the flow continues below.
|
|
40
|
+
if [ -f "$ROOT/infra/$cloud/terraform.tfvars" ]; then
|
|
41
|
+
ok "Using your existing infra/$cloud/terraform.tfvars"
|
|
42
|
+
else
|
|
43
|
+
cmd_ground "$([ "$cloud" = "aws" ] && echo aws || echo do)" || {
|
|
44
|
+
echo ""
|
|
45
|
+
info "Once that is sorted, run ${BOLD}unoverse deploy${NC} again. It picks up right here."
|
|
46
|
+
echo ""
|
|
47
|
+
exit 1
|
|
48
|
+
}
|
|
49
|
+
fi
|
|
44
50
|
echo ""
|
|
45
51
|
ok "Your $cloud ground is prefilled ${DIM}(infra/$cloud/terraform.tfvars)${NC}"
|
|
46
52
|
|
package/package.json
CHANGED