add starting, init, deployment, switch to new version and deploy again
authorMicah Anderson <micah@riseup.net>
Tue, 20 Sep 2016 19:46:25 +0000 (15:46 -0400)
committerMicah Anderson <micah@riseup.net>
Tue, 20 Sep 2016 19:46:25 +0000 (15:46 -0400)
bin/lut.sh

index 4a2d436..add6c20 100755 (executable)
@@ -74,6 +74,17 @@ cleanup () {
     exit $1
 }
 
+start_nodes () {
+    echo "Starting all the VMs, you should go do something else now, this will take a while..."
+    # monarch: monitor, tor hidden service, webapp
+    # dogface: couchdb/soledad
+    # hairstreak: mx
+    # checkerspot: openvn, need a gateway address to do openvpn, disabled
+    # spicebush: static node, with hidden service
+    # cloak: tor exit
+    leap vm start upgrade
+}
+
 case "$1" in
     -h | -help | --help )
        help
@@ -92,12 +103,16 @@ else
     get_cli $cli_git develop
     cd $provider_dir
     ln -s platform_$from_version $platform_link
-
-do stuff
-   
+    start_nodes
+    $cli_from/bin/leap node init upgrade
+    echo "Nodes initialized with old platform"
+    $cli_from/bin/leap -v2 deploy upgrade
+    echo "Nodes deployed with old version of platform"
+    $cli_from/bin/leap test
     switch $to_version
-
-do new stuff
+    $cli_to/bin/leap -v2 deploy upgrade
+    echo "Nodes deployed with new version of platform"
+    $cli_to/bin/leap test
    
     cleanup 0
 fi