diff options
author | crupest <crupest@outlook.com> | 2022-10-31 20:14:32 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-10-31 20:14:32 +0800 |
commit | 16bc28ac505aabd9da7dce085054a86db7904d6e (patch) | |
tree | 373c34c6cc699ddde1d09e5755666b1ae260c27c /template/generate.py | |
parent | efdfc6feb5744d8ad4bd07e35fa8d662925e3e96 (diff) | |
download | crupest-16bc28ac505aabd9da7dce085054a86db7904d6e.tar.gz crupest-16bc28ac505aabd9da7dce085054a86db7904d6e.tar.bz2 crupest-16bc28ac505aabd9da7dce085054a86db7904d6e.zip |
...
Diffstat (limited to 'template/generate.py')
-rwxr-xr-x | template/generate.py | 5 |
1 files changed, 3 insertions, 2 deletions
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.") |