pez-globo / pufferfish-software

All software for the Pufferfish ventilator.
Apache License 2.0
0 stars 1 forks source link

Split up deploy.sh into install/setup and locking up the system #314

Closed rohanpurohit closed 3 years ago

rohanpurohit commented 3 years ago

Currently, running the deploy.sh will do the following:

If there is any error while installing/setting up the services, the dev is locked out of the pi and needs to reflash the raspberry pi sd card and re-do the process from the beginning. therefore, we propose to split up the process of install/setup and locking the user out of the system into two different scripts, one as deploy/install/setup and the second one as lock.sh

ethanjli commented 3 years ago

The read-only filesystem config script should also be moved from deploy.sh into lock.sh.

For usability, maybe deploy.sh shouldn't call install.sh. Instead, we could make a deploy_full.sh which calls install.sh, deploy.sh, and lock.sh.