From 16bc28ac505aabd9da7dce085054a86db7904d6e Mon Sep 17 00:00:00 2001 From: crupest Date: Mon, 31 Oct 2022 20:14:32 +0800 Subject: ... --- template/generate.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'template/generate.py') diff --git a/template/generate.py b/template/generate.py index 1c94cda..a929b07 100755 --- a/template/generate.py +++ b/template/generate.py @@ -8,7 +8,7 @@ import grp import sys required_config_keys = set(["CRUPEST_DOMAIN", "CRUPEST_USER", "CRUPEST_GROUP", "CRUPEST_UID", - "CRUPEST_GID", "CRUPEST_HALO_DB_PASSWORD"]) + "CRUPEST_GID", "CRUPEST_HALO_DB_PASSWORD", "CRUPEST_IN_CHINA"]) print("It's happy to see you!\n") @@ -98,6 +98,7 @@ if not os.path.exists(config_path): config["CRUPEST_UID"] = str(os.getuid()) config["CRUPEST_GID"] = str(os.getgid()) config["CRUPEST_HALO_DB_PASSWORD"] = os.urandom(8).hex() + config["CRUPEST_IN_CHINA"] = "false" config_content = "" for key in config: config_content += f"{key}={config[key]}\n" @@ -160,4 +161,4 @@ for filename in filenames: with open(os.path.join(project_dir, filename), "w") as f: f.write(content) -print("\n🍻All done! See you next time!") +print("\n🍻All done! See you next time!\nBy the way, you may wish to run tool/download.py to download some scripts to do some extra setup like creating email user.") -- cgit v1.2.3