SiloCityLabs / lochnas

Docker configuration for all-in-one nas setup
https://lochnas.com
GNU General Public License v3.0
51 stars 3 forks source link

Update script in golang #50

Closed ldrrp closed 2 years ago

ldrrp commented 2 years ago

Problem

Old update.sh needs to be replaced with a golang script.

Solution

In the app.go file Update() we added the old bash script to comments. We need to conver this into golang to work with our new code. Additionally any system related update commands should be moved into a new system model. The system update will also invoke the app update model after its updated the system.

Let the user decide if he wants to let the app update run from config.yml option. We will not perform automatic system updates for the user because those may promt the user.

 - server:
    - update: true

Steps to Reproduce the Problem

  1. ./server.bin -app update
  2. ./server.bin -system update