From 88f96a23b4d29f35f2a0efaad97a0aac4b590238 Mon Sep 17 00:00:00 2001 From: simonmicro Date: Fri, 9 Dec 2022 20:54:21 +0100 Subject: [PATCH] Removed dummy client code --- docker/start.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/docker/start.py b/docker/start.py index 51337c2..f164fa7 100644 --- a/docker/start.py +++ b/docker/start.py @@ -29,21 +29,6 @@ listen_ip = os.environ.get('IP', '::').split() listen_port = os.environ.get('PORT', '1688') -def start_kms_client(): - if not os.path.isfile(dbPath): - # Start a dummy activation to ensure the database file is created - client_cmd = [PYTHON3, '-u', 'pykms_Client.py', listen_ip[0], listen_port, - '-m', 'Windows10', '-n', 'DummyClient', '-c', 'ae3a27d1-b73a-4734-9878-70c949815218', - '-V', log_level, '-F', log_file] - if os.environ.get('LOGSIZE', '') != "": - client_cmd.append('-S') - client_cmd.append(os.environ.get('LOGSIZE')) - loggersrv.info("Starting a dummy activation to ensure the database file is created") - loggersrv.debug("client_cmd: %s" % (" ".join(str(x) for x in client_cmd).strip())) - - subprocess.run(client_cmd) - - def start_kms(): # Build the command to execute command = [PYTHON3, '-u', 'pykms_Server.py', listen_ip[0], listen_port]