mirror of
https://github.com/SystemRage/py-kms.git
synced 2025-08-10 21:29:13 +08:00
Fixed broken SQLite entrypoint (https://github.com/Py-KMS-Organization/py-kms/issues/14)
This commit is contained in:
@@ -25,7 +25,7 @@ for (arg, env) in argumentVariableMapping.items():
|
||||
command.append(arg)
|
||||
command.append(os.environ.get(env))
|
||||
|
||||
enableSQLITE = os.environ.get('SQLITE').lower() == 'true'
|
||||
enableSQLITE = os.environ.get('SQLITE') != None and os.environ.get('SQLITE').lower() == 'true'
|
||||
os.makedirs('db', exist_ok=True)
|
||||
dbPath = os.path.join('db', 'pykms_database.db')
|
||||
if enableSQLITE:
|
||||
|
Reference in New Issue
Block a user