|
|
|
@ -59,6 +59,9 @@ HOME = Path(_home)
|
|
|
|
|
|
|
|
|
|
SPORESTACK_DIR = HOME / ".sporestack" |
|
|
|
|
|
|
|
|
|
# Try to protect files in ~/.sporestack |
|
|
|
|
os.umask(0o0077) |
|
|
|
|
|
|
|
|
|
cli = typer.Typer(help=HELP) |
|
|
|
|
|
|
|
|
|
token_cli = typer.Typer() |
|
|
|
@ -251,7 +254,6 @@ def save_machine_info(machine_info: Dict[str, Any], overwrite: bool = False) ->
|
|
|
|
|
""" |
|
|
|
|
Save info to disk. |
|
|
|
|
""" |
|
|
|
|
os.umask(0o0077) |
|
|
|
|
directory = server_info_path() |
|
|
|
|
hostname = machine_info["vm_hostname"] |
|
|
|
|
json_file = directory / f"{hostname}.json" |
|
|
|
|