Commit Graph

5 Commits (4b77e1bca8ab69ea352a83d8520cb0e390db460f)

Author SHA1 Message Date
Alejandro Sirgo Rica 0225502832 cli: add live set --default command
Add command to set a new default live.

Command example:
ogcli set live --default --name ogLive-5.4.0-r20220408
2024-12-05 13:25:46 +01:00
Alejandro Sirgo Rica 85d910d020 cli: add live management commands
Add new parameters to the config file ogcli.json with the
following default values:
'local_live': '/var/www/html/ogrelive'
'server_live': 'https://opengnsys.soleta.eu/ogrelive'

Add command to install the files of a live system. Example:
ogcli install live --name ogrelive-6.1.0-26

Perform an update if live files are already present.

Add command to delete the files of a live system. Example:
ogcli delete live --name ogrelive-6.1.0-26

Update ogcli list live to show the lives in the server when
invoked with the --remote flag. Example:
ogcli list live --remote
2024-11-21 17:05:26 +01:00
Alejandro Sirgo Rica 10a3897f92 cli: ensure the program returns 0 on success and 1 on error
propagate a returncode in each operation and make it the
returncode of the program.

Prevent sys.exit calls in post(), get() and delete() request
handlers to enable cleanup code and error handling. Keep a basic
error log inside the request functions if the connection can't
be established or if the response contains an error code.
2024-11-21 17:05:24 +01:00
OpenGnSys Support Team c1aae6e35e src: update copyright statement
use opengnsys@soleta.eu email instead of info@soleta.eu
2024-01-02 14:00:53 +01:00
OpenGnSys Support Team 020592d6fc live: add command to list available live images
Add new command to display the available live images:

 # ogcli list live
2024-01-02 13:52:36 +01:00