Browse Source

Allow certgen independent of bundle creation

Additionally, fix indentation.

Change-Id: I598167a2b73f1376fae2f5fb813fd1b10647892e
Anderson, Craig (ca846m) 2 months ago
parent
commit
f4d991f010
1 changed files with 13 additions and 9 deletions
  1. 13
    9
      tools/simple-deployment.sh

+ 13
- 9
tools/simple-deployment.sh View File

@@ -33,27 +33,31 @@ then
33 33
     sed -i "s/192.168.77.0\/24/${HOSTCIDR}/g" "${BUILD_DIR}"/*.yaml
34 34
 fi
35 35
 
36
+if [[ -z $1 ]] || [[ $1 = generate-certs ]]; then
36 37
 echo === Generating updated certificates ===
37 38
 docker run --rm -t \
38 39
     -w /target \
39 40
     -e PROMENADE_DEBUG=$PROMENADE_DEBUG \
40 41
     -v ${BUILD_DIR}:/target \
41 42
     ${IMAGE_PROMENADE} \
42
-        promenade \
43
-            generate-certs \
44
-                -o /target \
45
-                $(ls ${BUILD_DIR})
43
+    promenade \
44
+    generate-certs \
45
+    -o /target \
46
+    $(ls ${BUILD_DIR})
47
+fi
46 48
 
49
+if [[ -z $1 ]] || [[ $1 = build-all ]]; then
47 50
 echo === Building bootstrap scripts ===
48 51
 docker run --rm -t \
49 52
     -w /target \
50 53
     -e PROMENADE_DEBUG=$PROMENADE_DEBUG \
51 54
     -v ${BUILD_DIR}:/target \
52 55
     ${IMAGE_PROMENADE} \
53
-        promenade \
54
-            build-all \
55
-                -o /target \
56
-                --validators \
57
-                $(ls ${BUILD_DIR})
56
+    promenade \
57
+    build-all \
58
+    -o /target \
59
+    --validators \
60
+    $(ls ${BUILD_DIR})
61
+fi
58 62
 
59 63
 echo === Done ===

Loading…
Cancel
Save