zebrunner / mcloud

Mobile farm ecosystem for Android and iOS devices
127 stars 21 forks source link

handle secondary shutdown #180

Closed vdelendik closed 1 year ago

vdelendik commented 1 year ago

similar ticket: https://github.com/zebrunner/reporting/issues/2344

vdelendik commented 1 year ago

fixed. we should see Unable to erase as nothing is configured! warning in case of executing shutdown without setup or during secondary shutdown

dhreben commented 1 year ago

Verified.

Case 1:

  1. Git clone mcloud repo
  2. cd mcloud
  3. ./zebrunner.sh shutdown -> without setup ->

    (base) build@mcloud:~/tools/1/mcloud$ ./zebrunner.sh shutdown
    
      WARNING! Unable to erase as nothing is configured!

Case 2:

  1. cd mcloud on working repo
  2. ./zebrunner.sh shutdown - Select yes ->

    (base) build@mcloud:~/tools/community-edition/mcloud$ ./zebrunner.sh shutdown
    
      WARNING! Shutdown will erase all settings and data for "/home/build/tools/community-edition/mcloud"!
      Do you want to continue? y/n [n]:y
    Network infra is external, skipping
    Removing volume mcloud_stf-temp-volume
    Removing volume mcloud_stf-db-volume
  3. ./zebrunner.sh shutdown -> again ->

    (base) build@mcloud:~/tools/community-edition/mcloud$ ./zebrunner.sh shutdown
    
      WARNING! Unable to erase as nothing is configured!