From d45d41ee0bd52b28226e69317bca1c284009b397 Mon Sep 17 00:00:00 2001 From: xengineering Date: Mon, 25 Nov 2019 13:39:43 +0100 Subject: First version with desktop installation support. --- bin/write_config.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'bin/write_config.py') diff --git a/bin/write_config.py b/bin/write_config.py index c01eb47..704ea33 100644 --- a/bin/write_config.py +++ b/bin/write_config.py @@ -47,6 +47,16 @@ print("Please type in the hostname of your new machine:") config["hostname"] = input() +# Desktop or no Desktop + +print("Do you want to install a desktop? [Y/n]:") +answer = input() +if answer in ["", "Y", "y", "Yes", "yes"]: + config["desktop"] = "yes" +else: + config["desktop"] = "no" + + # Write config to json file config_json = json.dumps(config, indent=4) -- cgit v1.2.3-70-g09d2